blondegeek
Baseband Member
- Messages
- 23
Okay, here's a new problem for today:
I'm trying to make a web based stock management majig but first I have to set up all the authorization stuff. So I've been learning how to check back with my mysql databases for usernames and passwords, but I want to set it up so it can also be authorized by cookies.
I'll post the code on the next post. It's not the prettiest thing. It works when I log-in but if i go to the protected page without entering the information on the login page I get yelled at with "Grr. HAHAHAHA!!! You can't get in!", which is what it's suppose to do when a password or username is incorrect.
ANYWAY, I set up two cookies and I also set the php page to mail me the values of the variables assigned to equal the cookies. Whenever I login through the log-in page, it mails back both $user and $pass. But, when I just go to the protected page it only mails back a value for $pass (therefore I assume $user didn't recieve a value). I checked the cookies on my computer and they are both there. SO why can't my page get the $user when skip the log-in page?
Thanks!
I'm trying to make a web based stock management majig but first I have to set up all the authorization stuff. So I've been learning how to check back with my mysql databases for usernames and passwords, but I want to set it up so it can also be authorized by cookies.
I'll post the code on the next post. It's not the prettiest thing. It works when I log-in but if i go to the protected page without entering the information on the login page I get yelled at with "Grr. HAHAHAHA!!! You can't get in!", which is what it's suppose to do when a password or username is incorrect.
ANYWAY, I set up two cookies and I also set the php page to mail me the values of the variables assigned to equal the cookies. Whenever I login through the log-in page, it mails back both $user and $pass. But, when I just go to the protected page it only mails back a value for $pass (therefore I assume $user didn't recieve a value). I checked the cookies on my computer and they are both there. SO why can't my page get the $user when skip the log-in page?
Thanks!