Thread: cookie problem
View Single Post
  #2 (permalink)  
Old 12-23-03, 07:52 PM
Acecool's Avatar
Acecool Acecool is offline
Aspiring Coder
 
Join Date: Nov 2003
Posts: 506
Thanks: 0
Thanked 0 Times in 0 Posts
Make the normal login etc.

Then in the header use session_start
if ($_COOKIE['Login_Cookie']) {
// Read cookie (Make it store userid / password hashed with md5) and query against a database.

If it matches up, start the sessions for quick login, if it doesnt then delete the cookie and send a mail with their ip and what they used to try to access the site to yourself as to take legal action if they were trying to exploit something.

Also the php manual includes VERY detailed information on cookies.
__________________
Check Acecoolco.com for PHP Tutorials, and other tuts
If you plan on contacting me, please read this: Legal Terms & Conditions
Reply With Quote