Class yii\web\SessionHandler
| Inheritance | yii\ |
|---|---|
| Implements | SessionHandlerInterface |
| Available since version | 2.0.52 |
| Source Code | https://github.com/yiisoft/yii2/blob/master/framework/web/SessionHandler.php |
SessionHandler implements an SessionHandlerInterface for handling yii\
Public Methods
Method Details
| public mixed __construct ( yii\ | ||
| $session | yii\ |
|
public function __construct(Session $session)
{
$this->_session = $session;
}
| public boolean destroy ( mixed $id ) | ||
| $id | mixed | |
public function destroy($id): bool
{
return $this->_session->destroySession($id);
}
| public mixed gc ( mixed $max_lifetime ) | ||
| $max_lifetime | mixed | |
#[\ReturnTypeWillChange]
public function gc($max_lifetime)
{
return $this->_session->gcSession($max_lifetime);
}
| public boolean open ( mixed $path, mixed $name ) | ||
| $path | mixed | |
| $name | mixed | |
public function open($path, $name): bool
{
return $this->_session->openSession($path, $name);
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.