Bluz\Session\Session
Session
- Author: Anton Shevchuk
Synopsis
- // members
- protected $name;
- protected string $namespace = 'bluz';
- protected SessionHandlerInterface $adapter;
- // methods
- public Session setName()
- public string getName()
- public Session setNamespace()
- public string getNamespace()
- public Session setId()
- public string getId()
- public bool regenerateId()
- public bool cookieExists()
- public bool sessionExists()
- public bool start()
- public void destroy()
- public Session setAdapter()
- public SessionHandlerInterface getAdapter()
- protected bool initAdapter()
- public void setSessionCookieLifetime()
- public void expireSessionCookie()
- protected Session setSavePath()
- public void set()
- public mixed get()
- public bool contains()
- public void delete()
- // Inherited methods from Options
- public mixed getOption()
- public void setOption()
- public array getOptions()
- public Options setOptions()
- protected void initOptions()
Hierarchy
Uses
Members
protected
- $adapter — \SessionHandlerInterface
- $name — string
- $namespace — string
- $options — array
Methods
protected
- initAdapter() — Register Save Handler with ext/session
- setSavePath() — Set session save path
public
- contains() — Isset
- delete() — Unset
- destroy() — Destroy/end a session
- expireSessionCookie() — Expire the session cookie
- get() — Get value by key
- getAdapter() — Get SaveHandler Object
- getId() — Get session ID
- getName() — Get session name
- getNamespace() — Get Namespace
- regenerateId() — Regenerate id
- sessionExists() — Does a session started and is it currently active?
- set() — Set key/value pair
- setAdapter() — Set session save handler object
- setId() — Set session ID
- setName() — Attempt to set the session name
- setNamespace() — Set Namespace
- setSessionCookieLifetime() — Set the session cookie lifetime
- start() — Start session
Inherited from Bluz\Common\Options
protected
- initOptions() — Check and initialize options in package
public
- getOption() — Get option by key
- getOptions() — Get all options
- setOption() — Set option by key over setter
- setOptions() — Setup, check and init options
History
-
2017-10-26T11:09:23+00:00 (commit #0a9df53)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Updated Session adapters
-
2017-06-30T08:36:40+00:00 (commit #2259ecf)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Fixed comments style
-
2017-04-21T15:13:17+00:00 (commit #5e9b7bc)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Small codestyle fixes
-
2017-04-21T13:24:35+00:00 (commit #3b25a3d)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Small update for codestyle
-
2017-04-12T09:45:17+00:00 (commit #e8463fb)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Fixed controller cache issue
-
2017-02-15T16:09:44+00:00 (commit #0fc0c8b)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Updated coveralls config
-
2017-02-13T10:14:18+00:00 (commit #43dbf55)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Rollback to `getCount()` method
-
2017-01-30T13:15:49+00:00 (commit #fd5d943)
Author: Anton (AntonShevchuk@gmail.com) / Commiter: GitHub (AntonShevchuk@gmail.com)
Merge pull request #395 from AntonShevchuk/master Added `AttachmentResponse`
-
2017-01-30T12:38:53+00:00 (commit #0ab8691)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Added `AttachmentResponse` Added `attachment($file)` helper for `Controller`