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 2 of 2

Thread: cookie

  1. #1
    Regular Coder
    Join Date
    Aug 2005
    Posts
    257
    Thanks
    8
    Thanked 0 Times in 0 Posts

    cookie

    How I can set a cookie name with the next function:

    Explanation: if cookie called: "lostpasswd" is present on the web browser of user it can't be access to the page in the next 30 minutes. After 30 minutes the cookie will be destroyer.

    Thanks for all people.

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,928
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    This is not really very effective - the user may have cookies disabled to start with or may simply delete the cookie once it is created.

    You should do this sort of security check server-side.


  •  

    Posting Permissions

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