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?
Session variables performing oddly
Moderator: General Moderators
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.
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.
- Derfel Cadarn
- Forum Contributor
- Posts: 193
- Joined: Thu Jul 17, 2003 12:02 pm
- Location: Berlin, Germany
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!
It helped me a while ago!