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

keep session even if browser is close #40

Closed
TebongA opened this issue Jul 26, 2021 · 1 comment
Closed

keep session even if browser is close #40

TebongA opened this issue Jul 26, 2021 · 1 comment
Assignees

Comments

@TebongA
Copy link

TebongA commented Jul 26, 2021

Hi,
I want that my session will stay even if the browser is close so I tried this code:
ini_set('session.cookie_lifetime', 1300000);
$session = new Zebra_Session($pdo, 'sessionSecCode', '', true, false, 1000);

however the moment I closed the browser.. i lost my session. is there a way for me to keep my session even if i close the browser?

@stefangabos
Copy link
Owner

This is a quirk of this library :)
I will fix it in the next release, I promise!

For now, go to line 241 and put your value there. You could set it to something like 315360000 (10 years)

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

2 participants