NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Working with session variables


Joined: 15 Sep 2004
Posts: 9
Reply with quote
Hello,

I'm trying to debug an application that uses session variables for various actions. The login page starts a session and sets some variables to it. The subsequent pages use the @session_start() function to retrieve the perviously saved variables. For some reason, when I run this in the dubugger, the session variables are NOT retrieved correctly and the $_SESSION global variable is empty. This does not happen when I access the web server using IE, meaning I can tell that the $_SESSION variables can be retrieved between pages.

Environment:
Win XP
Pentium 4
Apache server

Thanks for any help,

Slawek
View user's profileFind all posts by SlawekSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
remove "@" before the function call and make sure there is no error(s) given. Also check Apache logs to see if anything bad logged here. Also look into php.ini to make sure session path is set to an existing directory.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Thanks!


Joined: 15 Sep 2004
Posts: 9
Reply with quote
After I commented out the "@" an error poped up and pointed to an error in a file I was including. Thank you.
View user's profileFind all posts by SlawekSend private message
Working with session variables
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