SessionFactory
class SessionFactory implements SessionFactoryInterface (View source)
Class SessionFactory Base concrete5 session factory.
To add custom handlers, extend this class and for a handler named "custom_test"
create a protected method getCustomTestHandler
Properties
protected | $app | ||
protected Request deprecated | $request | The request object We needed a reference to this object so that we could assign the session object to it. |
Methods
Create a new symfony session object This method MUST NOT start the session.
Create and return a newly built file session handler.
Create a new database session handler to handle session.
Return a built Memcached session handler.
Return the default session handler.
Get a session storage object based on configuration.
Get a new session handler.
Generator for only returning hosts that aren't already added to the memcache instance.
Return a built Redis session handler.
Decides whether to return a Redis Instance or RedisArray Instance depending on the number of servers passed to it.
No description
Details
__construct(Application $app, Request $request)
SessionFactory constructor.
Session
createSession()
Create a new symfony session object This method MUST NOT start the session.
protected NativeFileSessionHandler
getFileHandler(array $config)
Create and return a newly built file session handler.
protected PdoSessionHandler
getDatabaseHandler(array $config)
Create a new database session handler to handle session.
protected MemcachedSessionHandler
getMemcachedHandler(array $config)
Return a built Memcached session handler.
protected NativeFileSessionHandler
getDefaultHandler(array $config)
Return the default session handler.
private SessionStorageInterface
getSessionStorage(array $config)
Get a session storage object based on configuration.
private SessionHandlerInterface
getSessionHandler(array $config)
Get a new session handler.
private Generator|string[]
newMemcachedServers(Memcached $memcached, array $servers)
Generator for only returning hosts that aren't already added to the memcache instance.
protected RedisSessionHandler
getRedisHandler(array $config)
Return a built Redis session handler.
private Redis
getRedisInstance(array $servers)
Decides whether to return a Redis Instance or RedisArray Instance depending on the number of servers passed to it.
private
getRedisServers(array $servers)
No description