Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP Login Script Error

Status
Not open for further replies.

Warvstar

Programmer
Dec 2, 2002
10
CA
I have a script so users can register and it creates a database for them in MySQL and creates a folder with there files in it, my problem is i want to store information of the users name, password and a few other things, on his pc, so he wont have to type his name in all the time.

Also i have a page Redirecting to PHP Page, and i want his info to transfer to the next page, so far everytime someone tries to create or login a account, they the cookie data stored from the last user gets used instead.
 
It sounds like your users are sharing a public machine. Is this correct? Cookies won't help you much in this case.
 
The users "anyone on the web who signs up", access/store all there files a my servers, i use PHP for almost all my pages, and php sucks for cookies, because from what i see it store all cookies on the host pc, not the client, and it usualy loads the last persons info, not the current persons info.
 
That is not correct. A cookie won't do anybody much good if it's stored on the server (host). If cookies are enabled on the client, then the next time (anybody) using that machine logs on to the site that issued the cookie, The site will assume it is the user who last logged in with that machine. This isn't an apache issue and discussing php and cookies is a little off topic but there are some good forums here that cover both issues. Good luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top