mathceleb
11-03-2010, 12:00 AM
Does header("Cache-control: private") interfere with sessions at all?
I have a sign in page where after signing in, I'll run a calculation in the search box, and the session user id disappears. I'll log in again, and it works. What's odd is if I don't run a calculation, and just press a link on the left hand side, everything is fine.
I setup the following temporarily for anybody to check out the problem.
http://mathcelebrity.com/login.php
username: mctemp@hotmail.com
password: 12345
When it goes to the member page, go to the search box at the top right and type 13652+65.
Does the session disappear? (top right say signed in as Guest)
For me, sometime it does, sometimes it does not.
I suspect it may be this: header("Cache-control: private");
I have this immediately after many of my session_start(); statements
Yesterday, I did not run into this problem too much.
I have a sign in page where after signing in, I'll run a calculation in the search box, and the session user id disappears. I'll log in again, and it works. What's odd is if I don't run a calculation, and just press a link on the left hand side, everything is fine.
I setup the following temporarily for anybody to check out the problem.
http://mathcelebrity.com/login.php
username: mctemp@hotmail.com
password: 12345
When it goes to the member page, go to the search box at the top right and type 13652+65.
Does the session disappear? (top right say signed in as Guest)
For me, sometime it does, sometimes it does not.
I suspect it may be this: header("Cache-control: private");
I have this immediately after many of my session_start(); statements
Yesterday, I did not run into this problem too much.