Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: PHP Session Dissapears Intermittently |
|
Author |
|
nshiell
Joined: 18 Oct 2017 Posts: 2 Location: London
|
Posted: Mon 16 Jul '18 12:27 Post subject: PHP Session Dissapears Intermittently |
|
|
Hi, I'm running a website for a friend, I have an issue with sessions.
Sometimes they seem to not work - as in after users log in their session is gone during subsequent requests.
I believe it may have something to do with the fact that I have set up:
php_value session.cookie_httponly 1
php_value session.cookie_secure 1
It is an intermittent issue, what do you guys suggest I do to debug and resolve this?
Super many thanks |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 16 Jul '18 15:47 Post subject: |
|
|
Those values are okay. Did you change anything else session releated in the php.ini? |
|
Back to top |
|
nshiell
Joined: 18 Oct 2017 Posts: 2 Location: London
|
Posted: Mon 16 Jul '18 17:36 Post subject: |
|
|
The only think different in php.ini is that I have configured Mongo bindings for php 7.0 |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 17 Jul '18 21:54 Post subject: |
|
|
Then is it more likely that the php programmings ends the session some how.
your friend has to make sure that in very file that is called from apache e.g. index.php, post.php whatever.php the first line after the <?php has to be
session_start(); to keep the session alive. |
|
Back to top |
|
|
|
|
|
|