Skip to content

Commit edfbd03

Browse files
committed
Renamed recover-session to access-session.
The access-session must be used to retrieve the session from the storage. The name resembles the access to something so it also must update the last access at field of a session.
1 parent d75bc6b commit edfbd03

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

session/package.lisp

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
(:use #:cl)
33
(:export
44
#:create-session
5-
#:recover-session
5+
#:access-session
66
#:update-session
77
#:session-exists-p
88
#:renew-session
@@ -19,11 +19,15 @@
1919
2020
Returns the newly created session object."))
2121

22-
(defgeneric recover-session (object session-id &key &allow-other-keys)
23-
(:documentation "Retrieves the session data associated with SESSION-ID from OBJECT.
22+
(defgeneric access-session (object session-id &key &allow-other-keys)
23+
(:documentation "Retrieves the session data associated with SESSION-ID from OBJECT and
24+
it also must update the `last access at` if the session is valid.
2425
25-
Returns the session data if it exists and is valid; returns NIL if the session
26-
is expired or does not exist.
26+
This method must return this values:
27+
28+
- (:not-found session-id)
29+
- (:expired session-id)
30+
- (:session session)
2731
2832
- OBJECT: The session backend or manager.
2933
- SESSION-ID: The identifier of the session to recover.

0 commit comments

Comments
 (0)