Jump to content

[SOLVED] Setting cookies


plutomed

Recommended Posts

as a note:

 

 

setcookie('k',$k+1,time()-1);

 

setting the expire time to 0 makes it a browser session cookie, lasting forever, until the browser is closed. but setting the expire time to 1 is the lowest timestamp possible and is most likely to expire the cookie without any problems.

OK .. thats doesn't make much sense to me, MD5 can't be "decrypted"

 

storing the username for use on the login screen is fine.. password well a litte 2way encryption is always an idea but that can be reversed.

 

simple idea.. would be to store the hashed password and on the login if the password is 32 char then don't MD5 it.. your have to put a password limit of 31 chars..

 

just an idea personally i wouldn't store the password in any format in a cookie

 

anyways thats for another thread lol

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.