SessionManager
class SessionManager extends Manager
Properties
protected Application | $app | The application instance. |
from Manager |
protected array | $customCreators | The registered custom driver creators. |
from Manager |
protected array | $drivers | The array of created "drivers". |
from Manager |
Methods
Get the default session driver name.
Call a custom driver creator.
Dynamically call the default driver instance.
Create an instance of the "array" session driver.
Create an instance of the "cookie" session driver.
Create an instance of the file session driver.
Create an instance of the file session driver.
Create an instance of the database session driver.
Get the database connection for the database driver.
Create an instance of the APC session driver.
Create an instance of the Memcached session driver.
Create an instance of the Redis session driver.
Create an instance of a cache driven driver.
Create the cache based session handler instance.
Get the session configuration.
Set the default session driver name.
Details
in
Manager at line 37
void
__construct(Application $app)
Create a new manager instance.
at line 201
string
getDefaultDriver()
Get the default session driver name.
in
Manager at line 55
mixed
driver(string $driver = null)
Get a driver instance.
in
Manager at line 77
protected mixed
createDriver(string $driver)
Create a new driver instance.
at line 16
protected mixed
callCustomCreator(string $driver)
Call a custom driver creator.
in
Manager at line 112
$this
extend(string $driver, Closure $callback)
Register a custom driver creator Closure.
in
Manager at line 124
array
getDrivers()
Get all of the created "drivers".
in
Manager at line 136
mixed
__call(string $method, array $parameters)
Dynamically call the default driver instance.
at line 26
protected Store
createArrayDriver()
Create an instance of the "array" session driver.
at line 36
protected Store
createCookieDriver()
Create an instance of the "cookie" session driver.
at line 48
protected Store
createFileDriver()
Create an instance of the file session driver.
at line 58
protected Store
createNativeDriver()
Create an instance of the file session driver.
at line 72
protected Store
createDatabaseDriver()
Create an instance of the database session driver.
at line 88
protected Connection
getDatabaseConnection()
Get the database connection for the database driver.
at line 100
protected Store
createApcDriver()
Create an instance of the APC session driver.
at line 110
protected Store
createMemcachedDriver()
Create an instance of the Memcached session driver.
at line 120
protected Store
createRedisDriver()
Create an instance of the Redis session driver.
at line 137
protected Store
createCacheBased(string $driver)
Create an instance of a cache driven driver.
at line 148
protected CacheBasedSessionHandler
createCacheHandler(string $driver)
Create the cache based session handler instance.
at line 164
protected Store
buildSession(SessionHandlerInterface $handler)
Build the session instance.
at line 179
protected EncryptedStore
buildEncryptedSession(SessionHandlerInterface $handler)
Build the encrypted session instance.
at line 191
array
getSessionConfig()
Get the session configuration.
at line 212
void
setDefaultDriver(string $name)
Set the default session driver name.