MCPcopy Create free account
hub / github.com/adonisjs/session / destroy

Method destroy

src/session_collection.ts:87–90  ·  view source on GitHub ↗

* Destroys a session by its ID * * @param sessionId - Session identifier * * @example * await sessionCollection.destroy('sess_abc123')

(sessionId: string)

Source from the content-addressed store, hash-verified

85 * await sessionCollection.destroy('sess_abc123')
86 */
87 async destroy(sessionId: string): Promise<void> {
88 debug('session collection: destroying session %s', sessionId)
89 return this.#store.destroy(sessionId)
90 }
91
92 /**
93 * Tag a session with a user ID.

Callers

nothing calls this directly

Calls 1

destroyMethod · 0.65

Tested by

no test coverage detected