FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » setcookie() Expiration
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
setcookie() Expiration [message #171067] Tue, 21 December 2010 23:45 Go to previous message
Tyrone Slothrop is currently offline  Tyrone Slothrop
Messages: 3
Registered: December 2010
Karma:
Junior Member
I am having problems setting a cookie to expire in the future rather
than at end of session on a particular server. I can upload the code
to another server and the cookie expiration is correct. I checked the
server time and it is correct.

I have even tried simplifying the code to essentials and it will not
work.
setcookie ('cookie_name', 'cookie_value', time()+(60*60*24*7));

What is even more frustrating is that code I wrote years ago which
used to work, now does not. I have tried in multiple browsers and all
have the same problem. This pretty much narrows it down to the
server.

This is a leased server running CentOS and cPanel and all updates to
PHP, etc. are current within a month or two. I have root access.

Anyone else run into this problem?

TIA!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: The Future of PHP
Next Topic: what all languages i want to learn to make a social networking site?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 08:03:10 GMT 2024

Total time taken to generate the page: 0.05331 seconds