I don’t know how many people have had this particular problem, but I know I’m not the only one. Two weeks ago I encountered a strange issue when using session_start() with PHP; the method call was not setting/creating a cookie, so I couldn’t access my session variables. I went to php.net and found several answers. I’m pretty sure this only applies to people who have are running this on their own server; ergo, hosting companies won’t have (or have already remedied) this issue.
I use PHP ver. 4.4.1 so I don’t know if this applies to versions 5+, but if you encounter the same problem, try one (or all) of the following:
If you’ve been having the same problem and none of the above suggestions have helped, try looking for a solution at www.php.net, if that doesn’t work for you, well, you can always Google it.