faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 7 people (29%) answered Yes
Recently 2 of 7 people (29%) answered Yes


Hi, How do I go about saving username and password values in the client...

Feb 27th, 2008 23:56
dman, Ayse Geertsma, Neil Ross, http://www.ttnr.org

The only thing you can force on a client is a cookie. Since cookies are 
just textfiles it might be unwise to save user/password in them. I 
suggest you use sessions and keep te session active for a longer time 
(a day or a week or so). When the user comes back within that time, 
from the same machine, the user is still logged in.
If you do this, make sure the user can choose to log-out if this is