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

custom session_name() prevents session from starting #29

Open
andersce100 opened this issue Mar 1, 2016 · 1 comment
Open

custom session_name() prevents session from starting #29

andersce100 opened this issue Mar 1, 2016 · 1 comment

Comments

@andersce100
Copy link

I've been using this excellent script for over a year, with no problems.

But after an upgrade to PHP version: 5.6.16 the custom sec_session kills the session. If I start the session directly:

_session_start() _

then the login works but without the custom session name and cookies ect.

If I comment out this line:

session_name($session_name);

Then the login works. When I un-comment that line it breaks the login again.

Any wisdom is appreciated.

Thanks in advance.

Chris

@d-adamkiewicz
Copy link

Acording to this http://marc.info/?l=php-doc-bugs&m=120303453328364&w=2
you cannot set session name via session_name($session_name) if it's set using php_admin_value in httpd.conf (it's feature not bug). It happens on shared hosting accounts.

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

No branches or pull requests

2 participants