메소드 | 설명 | |
---|---|---|
add ( mixed $key, mixed $value ) | adds a value as a new array element to the key. | |
destroy ( ) | deletes the session (= logs the user out) | |
get ( mixed $key ) : mixed | gets/returns the value of a specific key of the session | |
init ( ) | starts the session | |
isConcurrentSessionExists ( ) : boolean | checks for session concurrency | |
set ( mixed $key, mixed $value ) | sets a specific value to a specific key of the session | |
updateSessionId ( string $userId, string $sessionId = null ) : string | update session id in database | |
userIsLoggedIn ( ) : boolean | Checks if the user is logged in or not |
public static isConcurrentSessionExists ( ) : boolean | ||
리턴 | boolean |
public static userIsLoggedIn ( ) : boolean | ||
리턴 | boolean | user's login status |