Page 1 of 1

Session variables performing oddly

Posted: Thu Oct 02, 2003 7:33 pm
by Ryaareet
I run a website that required users to log in and the login details are stored using session variables to allow me to auto update the scores in a database.
For some users this works for only 20% visitors.

the rest cannot log in once they have registered their username.

I have read an article that states that almost 97% of users have cookies ENABLED so I discounted that theory.


Any other theories out there?

Posted: Fri Oct 03, 2003 5:01 am
by JAM
sessions and cookies are not the same tho.
I hope I'm correct when I state that the most common browsers (IE and netscape) doesn't support blocking of sessions. Mozilla does however, so there a problem might occur.

If you ARE using cookies, make sure that you have the domain part of the setcookie() correct, as this is a common thing people writes badly.

However, if you still experience issues with $_COOKIE/$_SESSION's you can also use $_GET (as in the http://example.com/page.php?info=foo&account=bar way) to transfer information between pages.

Posted: Fri Oct 03, 2003 7:00 am
by Derfel Cadarn
Perhaps a posting of mine from a few days ago could be of help: have a look at this article on Sitepoint aboutManaging Users with PHP Sessions and MySQL could be of assistence?
It helped me a while ago!