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
    Dec 2003
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Need Help on Session Timeout (JavaScript)

    Hi,

    I've created a Timeout Alert function that appears 5 minutes before the session ID times out.

    However, this is a client-side scripting and when a user presses a BACK button, the page is not always retrieved from the server.
    This lead to a problem: how can I get a contact with a server using JavaScript?

    Sasha

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    JavaScript can not contact the server. What you need to do is to make sure that page gets reloaded so it has to "hit" the server.

    You can try to do it with no cache Meta tags
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]


  •  

    Posting Permissions

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