logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in  RSS Apache Lounge  


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.



Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: PHP Session Dissapears Intermittently
Author
nshiell



Joined: 18 Oct 2017
Posts: 2
Location: London

PostPosted: Mon 16 Jul '18 12:27    Post subject: PHP Session Dissapears Intermittently Reply with quote

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: 6682
Location: Germany, Next to Hamburg

PostPosted: Mon 16 Jul '18 15:47    Post subject: Reply with quote

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

PostPosted: Mon 16 Jul '18 17:36    Post subject: Reply with quote

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: 6682
Location: Germany, Next to Hamburg

PostPosted: Tue 17 Jul '18 21:54    Post subject: Reply with quote

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


Reply to topic   Topic: PHP Session Dissapears Intermittently View previous topic :: View next topic
Post new topic   Forum Index -> Other Software