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
Re: setcookie() Expiration [message #171068 is a reply to message #171067] Wed, 22 December 2010 01:07 Go to previous messageGo to previous message
Adrienne Boswell is currently offline  Adrienne Boswell
Messages: 25
Registered: October 2010
Karma:
Junior Member
Gazing into my crystal ball I observed Tyrone Slothrop <ts(at)paranoids(dot)org>
writing in news:ede2h6to2eke1jp2jf3jjha4qbh7upk4pt(at)4ax(dot)com:

> 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!
>

Which browsers? Do any of the browsers have privacy settings that might
be conflicting with it? Can you see anything when using a cookie manager
or similar?

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
[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: Fri Oct 18 16:13:33 GMT 2024

Total time taken to generate the page: 0.04400 seconds