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

Method clear

src/session.ts:392–394  ·  view source on GitHub ↗

* Empties the session store * * @example * session.clear() // Removes all session data

()

Source from the content-addressed store, hash-verified

390 * session.clear() // Removes all session data
391 */
392 clear() {
393 return this.#getValuesStore('write').clear()
394 }
395
396 /**
397 * Adds a key-value pair to flash messages

Callers 5

session.spec.tsFile · 0.45

Calls 1

#getValuesStoreMethod · 0.95

Tested by

no test coverage detected