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

Question: session_id($id) does not change sid #37

Closed
debgy opened this issue Mar 9, 2021 · 1 comment
Closed

Question: session_id($id) does not change sid #37

debgy opened this issue Mar 9, 2021 · 1 comment
Assignees

Comments

@debgy
Copy link

debgy commented Mar 9, 2021

Hi, Thank you for providing this code.

I am using this code for Single sign on app as below. I don't need to write require because I use autoloader of framework.

class 1:
$session = new Zebra_Session($link, 'sEcUr1tY_c0dE');

session_start();
$id = session_id();

.... // I want to use this id in another timing...

class 2:
session_id($id);
$started = session_start();

I already changed session.use_strict_mode from true to false. but it still does not work.
How should I change session id using session_id()?
Please give me your advice if you have any ideas. Thank you!

@stefangabos
Copy link
Owner

There's a hardcoded

ini_set('session.use_strict_mode', 1);

in Zebra_Session.php
change that value to 0 for this to work

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