Hey guys, quick question. I've got a login script that posts form information to an authentication file.
This file authenticates the user's UN/PW and assigns cookies and session variables for the un/pw from the previous page and then, based on the level of access, directs them to a specific 'logged on' page.
I am having a problem with the session variable however. The login page etc is loaded into an IFRAME and all action takes place here. This shouldn't have anything to do with it but I figured I'd let ya know. Anyway, the biggest problem is on the 'logged on' page, I have the session variable being echoed, however the FIRST time I log in, it doesn't appear to have been entered into the session. I log out (not closins the browser) and then log back in and the echoed variable is there.
My main question is: Why would a session variable not be assigned on the first attempt, but then it would be assigned on the second?
I am know only the basics of sessions, so if you write something, I'd really appreciate if you could talk to me like i'm 10 😛 Thanx a bunch!
If you need any code please let me know and I'll post i. I didn't wanna post all three pages here but I can get all the snippets if you need.
Nico