DatabaseSessionHandler
class DatabaseSessionHandler implements SessionHandlerInterface, ExistenceAwareInterface (View source)
Properties
| protected ConnectionInterface | $connection | The database connection instance. | |
| protected string | $table | The name of the session table. | |
| protected int | $minutes | The number of minutes the session should be valid. | |
| protected Container | $container | The container instance. | |
| protected bool | $exists | The existence state of the session. | 
Methods
| void |  __construct(ConnectionInterface $connection, string $table, int $minutes, Container $container = null)  Create a new database session handler instance.  |  |
|  open($savePath, $sessionName)  {@inheritdoc}  |  ||
|  close()  {@inheritdoc}  |  ||
|  read($sessionId)  {@inheritdoc}  |  ||
|  write($sessionId, $data)  {@inheritdoc}  |  ||
| void |  performInsert(string $sessionId, string $payload)  Perform an insert operation on the session ID.  |  |
| int |  performUpdate(string $sessionId, string $payload)  Perform an update operation on the session ID.  |  |
| array |  getDefaultPayload(string $data)  Get the default payload for the session.  |  |
|  destroy($sessionId)  {@inheritdoc}  |  ||
|  gc($lifetime)  {@inheritdoc}  |  ||
| Builder |  getQuery()  Get a fresh query builder instance for the table.  |  |
| SessionHandlerInterface |  setExists(bool $value)  Set the existence state for the session.  |  
Details
void __construct(ConnectionInterface $connection, string $table, int $minutes, Container $container = null)
Create a new database session handler instance.
open($savePath, $sessionName)
{@inheritdoc}
close()
{@inheritdoc}
read($sessionId)
{@inheritdoc}
write($sessionId, $data)
{@inheritdoc}
protected void performInsert(string $sessionId, string $payload)
Perform an insert operation on the session ID.
protected int performUpdate(string $sessionId, string $payload)
Perform an update operation on the session ID.
protected array getDefaultPayload(string $data)
Get the default payload for the session.
destroy($sessionId)
{@inheritdoc}
gc($lifetime)
{@inheritdoc}
protected Builder getQuery()
Get a fresh query builder instance for the table.
SessionHandlerInterface setExists(bool $value)
Set the existence state for the session.
    © Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
    https://laravel.com/api/5.3/Illuminate/Session/DatabaseSessionHandler.html