whoa n/m, lemme see yer warface... I just abolished the header redirects and in place I put javascripties
works good
Yep that's right, having a small issue...
I'm running the latest version of both PHP and MySQL on Windows 2000. I have a login script that accesses my database, checks to see if a username entered by the user is in the db, and if so, it compares the password they enter... if everything checks out, the script registers a session variable, and then I set the session variable to their id number of their username... I have a header redirect to a new page, welcome.php... if you are trying to log in for the first time using this particular browser session, when you go to the page after the login completes, you get an undefined variable... and yess I am using session_start(); and the undefined variable is the session variable's name...
anyway, so it's undefined.. but then if you click on my link that "logs you out" (unregister and unset the session variable, redirect back to the login form), and then log in again using the same user, when you are redirected to the page everything works fine, and now the session variable in this new page is populated just fine, and it all works great...
anyone know what the deal is? Had some kind of situation like this before?
if you'd like I could post some source .phps files for you to take a look if you wish...
anyone?!?
Yep that's right, having a small issue...
I'm running the latest version of both PHP and MySQL on Windows 2000. I have a login script that accesses my database, checks to see if a username entered by the user is in the db, and if so, it compares the password they enter... if everything checks out, the script registers a session variable, and then I set the session variable to their id number of their username... I have a header redirect to a new page, welcome.php... if you are trying to log in for the first time using this particular browser session, when you go to the page after the login completes, you get an undefined variable... and yess I am using session_start(); and the undefined variable is the session variable's name...
anyway, so it's undefined.. but then if you click on my link that "logs you out" (unregister and unset the session variable, redirect back to the login form), and then log in again using the same user, when you are redirected to the page everything works fine, and now the session variable in this new page is populated just fine, and it all works great...
anyone know what the deal is? Had some kind of situation like this before?
if you'd like I could post some source .phps files for you to take a look if you wish...
anyone?!?
