Forum Moderators: coopster
This all worked fine when i tested it on the server, but now that it has been put into secure space the session seems to be dropping out, forcing the user to re-login.
I havent changed where the dirctory is (its on the same server and also in the same directory)
I have checked through the code and there is only 1 session_start on every page.
The problem seems to occur when data is submitted, and the session is unset. I am uploading images so could maybe the enc_type of the form be affecting this?
Any suggestions please would be greatly appreciated.
Ally
It could be that register_globals is on, and one var has the same name as session variable
Also try this code:
if(isset($_SESSION['whatever_name_your_session_var_has'])) die('Session = '.$_SESSION['whatever_name_your_session_var_has']);
else die('Session is already unset');
use it to debug, where in the script you loose your session, and then check the script in that place.
It always helped me.
Hope it helps you as well
Regards
Michal