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
  1. #1
    New to the CF scene
    Join Date
    Jun 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cookie [choose langauge] with no return

    hi everyone.

    Does anyone know how to create a JS cookie with no return at all.

    For example
    Main website [www.cookie.com] within my page my links
    www.somexample.com
    www.someotherexample.com

    If the user would choose one of those 2 links he wouldnt be able to go back to www.cookie.com is it possible? and if it can be done could you please give me an example.

    Thank you.

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,244
    Thanks
    203
    Thanked 2,555 Times in 2,533 Posts
    Not possible. You cannot disable the back button of the browser.
    The user can simply right-click on the page and choose to go back, or just restart his browser.

    It is your responsibility to die() if necessary….. - PHP Manual
    Last edited by Philip M; 06-18-2012 at 05:27 PM.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.


  •  

    Tags for this Thread

    Posting Permissions

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