lithium\storage\Session::key()
Returns (and Sets) the key used to identify the session.
Parameters
-
mixed
$nameOptional named session configuration.
-
mixed
$session_idOptional session id to use for this session.
Returns
stringReturns the value of the session identifier key, or null if no named
configuration exists, no session id has been set or no session has been started.
Source
public static function key($name = null, $sessionId = null) {
return is_object($adapter = static::adapter($name)) ? $adapter->key($sessionId) : null;
}