NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
DBG: Current session not found


Joined: 25 Aug 2006
Posts: 5
Reply with quote
When submitting a form the phpEd/DBG generates "Current session not found" output, and php's session_start() issues a new session Id. All session variables are lost.
The problem only occurs when using PHPED/DBG. The script, otherwise, runs perfectly OK with IE7/FireFox. I am using mysql database for session data storage.
Versions used are phpEd V 4.6.3, DBG V 3.1.9
Any help will be greatly appreciated.
View user's profileFind all posts by RossSend private message


Joined: 25 Aug 2006
Posts: 5
Reply with quote
To solve session start Problem while debugging: I think I figured out why Session_start() does not reload the current session data after loading a page in debug mode. Normally, I set session.referer_check as follows at the start of the script:
Code:

   //Force PHP to check referrer   
   ini_set('session.referer_check', 'www.domain.com');   

In debug, the referer URL is not the same! So without debug, session_start() restores session data normally, but it does not in debug because the host is now something like 'localhost:8080'. Using the following seem to solve the problem:
Code:

   //Force PHP to check referer when not in debug mode
   If (!isset($_COOKIE['DBGSESSID'])) ini_set('session.referer_check', 'www.domain.com');   

This is a quick-and-dirty work around. Any suggestion for a better solution will be most welcomed.
View user's profileFind all posts by RossSend private message
DBG: Current session not found
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic