Jump to content

[SOLVED] setcookie() help


tecmeister

Recommended Posts

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

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.