tecmeister Posted April 30, 2009 Share Posted April 30, 2009 Hi everyone, I'm just learning how to set a cookie. When I enter the code it expires straight away even tho this is what I'm typing. $time = time()+60*60*24*30; setcookie("pass", "CXG", $time, "/", "www.cxgsystems,co.uk"); Please will someone be able to explain where I have gone wrong. Thanks for your help, tecmeister. Link to comment https://forums.phpfreaks.com/topic/156332-solved-setcookie-help/ Share on other sites More sharing options...
Kieran Menor Posted April 30, 2009 Share Posted April 30, 2009 You got your domain name wrong. I see a comma in there. Link to comment https://forums.phpfreaks.com/topic/156332-solved-setcookie-help/#findComment-823102 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.