Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple sessions #8

Open
mindplay-dk opened this issue Sep 20, 2018 · 0 comments
Open

Support multiple sessions #8

mindplay-dk opened this issue Sep 20, 2018 · 0 comments

Comments

@mindplay-dk
Copy link
Contributor

Add support for multiple sessions by adding two optional arguments to createSession():

  • $cookie_name defaults to self::COOKIE_NAME, but can be used to optionally specify a cookie-name and create custom sessions.
  • $path defaults to "/", and can be used to optionally restrict the cookie to a given path.

For example, a dedicated cookie could be generated for a back-end system restricted to paths under /admin - this would be unreadable from the public pages on the site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant