Recent entries

 

Categories

 

PHP Sessions

In PHP - Posted on Tue 5th May 2009 4:10PM

PHP Sessions are a wonderful tool. You allow users to login and have access to members only stuff.

What happens when you set up the sessions then the sessions load inconsistently? Chances are you didn't get something set up correct for your sessions. In troubleshooting, this one website. I found a few things to really double check.


  1. Check your spelling. Typos are a very common problem

  2. Make sure all your pages have the session_start() function at the top with no white space or comments.

  3. your login should be in the root of the site. If your login does not happen in the root directory of the site, then your sessions may appear sporadically (esp. in Firefox).



I am hoping that these few tips are helpful to you!


No Comments