You are here: Newbie question: how to save user id on user's computer « PHP Programming Language « IT news, forums, messages
Newbie question: how to save user id on user's computer

Posted by Martin on 11/02/05 17:02

I would like to give a registered user of my website the option to
save his user id on his computer such that it will be pre-entered the
next time he goes to the log-in page.

It's my understanding that to do this I would write the information to
a cookie (after he successfully logs in with the option checked). What
I'm not clear on is, how do I get the userid from the cookie into the
text box on the log-in page? Do I read the cookie when he "hits" the
log-in page and then load the text box before I send out the page?

Can someone point me to some sample code for this?

Thanks.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация