Is it possible to set a perminent cookie?
I am not sure about PHP, but in ColdFusion you can do it by just not setting a time to expire.
You could just record their IP address and associate it to a place in a database or something and when that IP enters the site they are logged in (for example)
That wont work, people have dynamic ip's, so even if you logged the ip, the next time that the user logs on, they will more than likely have a diffrent ip
well just make a cookie.. first.. and maybe get browser info or something... and im not sure about not setting an expire date.. cos if its not set i think nothing happens and no cookie is made...
But im not certain on this
If you don't set the expiration time then the cookie expires when the browser is closed. To set a "permanent" cookie just set the expiration time to maybe ten years out i.e. time() + (10 365 24 60 60). Keep in mind of course that the user can delete cookies whenever they please.