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

Method destroy

src/session_collection.ts:95–98  ·  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

93 * await sessionCollection.destroy('sess_abc123')
94 */
95 async destroy(sessionId: string): Promise<void> {
96 debug('session collection: destroying session %s', sessionId)
97 return this.#store.destroy(sessionId)
98 }
99
100 /**
101 * Tag a session with a user ID.

Callers

nothing calls this directly

Calls 1

destroyMethod · 0.65

Tested by

no test coverage detected