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
    Jul 2004
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    loging out with session.Abandon()

    i was thinking of having a hyperlink which would log the user out. currently iam using a session object to log people in, ie session("permission") = true and then checking this on every page. i was woundering how i make a link run a script which sets session("permission") = false. but for some reason the user is only logged out out of every page only if they double refresh the page, otherwise the page detects the person as loged in. i think i need to set some cache to something. can anybody help? thanx in advance.

  • #2
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you're a bit vague about the actual situation where users can see earlier pages.

    I assume they browse through the history?

    In every case: sounds indeed like caching problem. Here's a recent thread about trying to prevent clientside caching
    http://www.codingforums.com/showthread.php?t=41607
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html


  •  

    Posting Permissions

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