how to set cookie to permanent unless i destory it

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

tisa
Forum Commoner
Posts: 27
Joined: Fri Nov 28, 2003 1:14 am

how to set cookie to permanent unless i destory it

Post by tisa »

Thank you for your help~~~
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

I dont think thats possible because the user could delete....
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

well besides that, just give it a really long time.. or i believe no time will make it infinite? not sure.
tisa
Forum Commoner
Posts: 27
Joined: Fri Nov 28, 2003 1:14 am

Post by tisa »

yes, i want set it to perment unless user destory it
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

there is no way to make a cookie everlasting...

All you can do is set a unusual long expire... sorry
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

LiLpunkSkateR wrote:well besides that, just give it a really long time.. or i believe no time will make it infinite? not sure.
false, if no time is assigned, the cookie will die when the browser closes.
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

tim, i think you think about sessions. cookies are stored on the users HD, unless they choose not to accept cookies...
tisa
Forum Commoner
Posts: 27
Joined: Fri Nov 28, 2003 1:14 am

Post by tisa »

oh..

thanks

then i will set the expire time to longer and longer
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

Illusionist wrote:tim, i think you think about sessions. cookies are stored on the users HD, unless they choose not to accept cookies...
i know what a cookie is, and if u can prove me wrong... i would like to see some valid data, but there is no such thing as a cookie being set forever (least not that I can possibly think of)

and if the time is not assigned, the cookie will be deleted as soon as the browser is closed, i know that for a fact.... so where am I at wrong?

so fast to put me in the wrong, how fast to put yourself in the right?
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

LOL, have oyu ever gone to a website, like this forum for example, and it has click ehr to remember your password? And next tiem you visit the site, whether you close your browser or not, you will automatically be logged in because it writes and sotres a cookie on your HD. Unless you delete your cookies, set your browser up to delete them after so long, or choose to delete taht cookie by loggin out of that site... it will always be on your computer.
read and do your own research to dis-prove me
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

all i searhced on here just now says theres no such way to set a cookie( and your 'more points for me' page doesnt load on my browser)

and u can erase all your cookies, log-in here with your (log-me-in-automatically) setting selected and wait a 10 years n see if your dont have to visit the log-in page again...

the phpBB also uses session_length to determine time frame for cookies existance..

so look ace, your not worth anymore time to sit here and argue over such a stupid subject, just get off my back until you have solid proof that there is a way to set a forever cookie without a code that will set n overlap again n again...
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

well, why dont you go to google, and type cookies vs sessions and read on waht cookies are and read on what sessions are.

And about an arguement, if anyone is argueing it would be you. Your the one making such a big deal about it. I said you were getting teh too confused and you told me to prove it, so i did!
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

:roll:
Post Reply