PC Nerd Posted April 13, 2007 Share Posted April 13, 2007 http://www.phpfreaks.com/forums/index.php/topic,135650.0.html we found in the above post, that my browser is storing cookies too long, and the php is still stoorign them as timestamps..... does anyone know why theyre storing so long, and why their storing the timestamps? thanks Link to comment https://forums.phpfreaks.com/topic/46929-solved-cookies-storing-to-long/ Share on other sites More sharing options...
Caesar Posted April 13, 2007 Share Posted April 13, 2007 Might be that I'm being too lazy to check the other thread but, why not use sessions? :-P Link to comment https://forums.phpfreaks.com/topic/46929-solved-cookies-storing-to-long/#findComment-228851 Share on other sites More sharing options...
PC Nerd Posted April 13, 2007 Author Share Posted April 13, 2007 um, im simply updating the login method from my already working site, shich uses cookies, and its stopped working. the entire site already uses cookies, and it would be easier simply to fix this problem. also, i dont know wif my host allows sessions Link to comment https://forums.phpfreaks.com/topic/46929-solved-cookies-storing-to-long/#findComment-228870 Share on other sites More sharing options...
MadTechie Posted April 13, 2007 Share Posted April 13, 2007 why are you using strtotime ? just add seconds ie setcookie("TestCookie", $value, time()+3600); strtotime has probably added years on Link to comment https://forums.phpfreaks.com/topic/46929-solved-cookies-storing-to-long/#findComment-228877 Share on other sites More sharing options...
PC Nerd Posted April 13, 2007 Author Share Posted April 13, 2007 ok ill try that.,....... however it has been working untill i added the new code, then it stopped??? thanks Link to comment https://forums.phpfreaks.com/topic/46929-solved-cookies-storing-to-long/#findComment-228878 Share on other sites More sharing options...
MadTechie Posted April 13, 2007 Share Posted April 13, 2007 my fav. Quote "Microsoft Products are Generally Bug Free" -- Bill Gates Link to comment https://forums.phpfreaks.com/topic/46929-solved-cookies-storing-to-long/#findComment-228881 Share on other sites More sharing options...
PC Nerd Posted April 13, 2007 Author Share Posted April 13, 2007 huh? ok, IVE FIXED IT!!!!!!! i was giving output ,and stuff, and low it loops through about 5 different pages to login (yes its a lot!!!!!) thankyou guys for all your help Link to comment https://forums.phpfreaks.com/topic/46929-solved-cookies-storing-to-long/#findComment-228893 Share on other sites More sharing options...
MadTechie Posted April 13, 2007 Share Posted April 13, 2007 clicky the solvedy buttony i'm lossing it.. time for sleep Link to comment https://forums.phpfreaks.com/topic/46929-solved-cookies-storing-to-long/#findComment-228897 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.