Web Analytics Made Easy -
StatCounter set cookie 5 hours - CodingForum

Announcement

Collapse
No announcement yet.

set cookie 5 hours

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • set cookie 5 hours

    Hi, i need to set a cookie to expire in 5 hours. I normally use an hour at +3600 but i have never done 5 hours before so will this work or should i use a different value.


    PHP Code:
    setcookie("Sitecheck"$valuetime()+18000); 
    I am not crazy, my computer had me checked but its on dialup and im still waiting for results :)
    A good way to remember objects from arrays is you shoot objects with arrows Example: $name->id; then Arrays are $name['id'];
    durangod is short for durango dave

  • #2
    That's exactly correct.

    It will be based off of your server timezone, not the user's timezone.

    If that's important, you can force the timezone to be whatever you wish.



    .

    Comment

    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎