session fun
From: Shell (newsgroups_at_ntlworld.com)
Date: 03/06/04
- Next message: King of Red Lions: "xml posting"
- Previous message: Tim Van Wassenhove: "Re: password encryption"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 6 Mar 2004 12:49:53 -0000
Any ideas on why the following is happening?
I have a login script. When the verification part checks the database with
what was put in the form, it *should* set a session variable to yes or no,
if the details supplied were correct or not. When I use the log in script
for the first time tho, this variable is not set.. it's not until I use the
form again that it is.
What ever I submit the first time (correct or incorrect) it's not set.. On
the next submit it's set correctly (as per what I entered the first time -ie
if I put details in correctly the first time, I don't get logged in till I
enter something in the 2nd time (and what I enter the 2nd time can be
anything, incorrect, and I get logged in)).
I'm confussed. I'm even putting:
$_SESSION['ifloggedin'] = "no";
at the start of the bit which checks if the details are correct, and it's
not set on the first run (but the bit is def running as I've put a test echo
in there to proove it is).
I'm reaaallly confussed.
Any ideas what could cause this? :/
- Next message: King of Red Lions: "xml posting"
- Previous message: Tim Van Wassenhove: "Re: password encryption"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|