Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2011
    Posts
    37
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Question delete cookies after inactivity

    Hello!
    I want a simple script which deletes two cookies after 10 min when the user has last loaded a page and was active 10 min before.

    Thanks for any help..

  • #2
    Regular Coder
    Join Date
    Jan 2012
    Posts
    271
    Thanks
    2
    Thanked 65 Times in 65 Posts
    just set the cookie to timeout after 10 minutes of inactivity

    PHP Code:
    setcookie("cookiename"'somevalue'time() +60*10); 
    update that every time they load a page or whatever...

  • #3
    New Coder
    Join Date
    Feb 2008
    Posts
    39
    Thanks
    0
    Thanked 1 Time in 1 Post

    this is a misspost can it be deleted please?

    Thanks I removed the spare 'e' and was hoping that might fix the issue but it didn't.
    Last edited by golffor1; 01-29-2012 at 04:04 AM. Reason: mispost..


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •