75 lines
1.1 KiB
PHP
75 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace Illuminate\Session;
|
|
|
|
use SessionHandlerInterface;
|
|
|
|
class NullSessionHandler implements SessionHandlerInterface
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*
|
|
* @return bool
|
|
*/
|
|
#[\ReturnTypeWillChange]
|
|
public function open($savePath, $sessionName)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*
|
|
* @return bool
|
|
*/
|
|
#[\ReturnTypeWillChange]
|
|
public function close()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*
|
|
* @return string|false
|
|
*/
|
|
#[\ReturnTypeWillChange]
|
|
public function read($sessionId)
|
|
{
|
|
return '';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*
|
|
* @return bool
|
|
*/
|
|
#[\ReturnTypeWillChange]
|
|
public function write($sessionId, $data)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*
|
|
* @return bool
|
|
*/
|
|
#[\ReturnTypeWillChange]
|
|
public function destroy($sessionId)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*
|
|
* @return int|false
|
|
*/
|
|
#[\ReturnTypeWillChange]
|
|
public function gc($lifetime)
|
|
{
|
|
return true;
|
|
}
|
|
}
|