It's not a secret anymore!*
The moose likes HTML, CSS and JavaScript and the fly likes jQuery , session timeout and cache issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "jQuery , session timeout and cache issues" Watch "jQuery , session timeout and cache issues" New topic
Author

jQuery , session timeout and cache issues

Naveen puttu
Ranch Hand

Joined: Sep 15, 2009
Posts: 88
Hello Everybody

I am using jquery ajax to fetch some data from the server . But then i experience some strange unexpected behavior

I have my session timeout set @ 5 minutes . So if a user tries to refresh the page or click on the existing link to fetch the data from the server then the app should be redirected to the login page (implementation specific)

What is happening now is very strange , browser is caching the call , data and returning back the data ever after the session is timed out . So i thought entry in ajax call might solve the issue , but then it doesnt help me as well

Even though the timestamp is appended to the url when cache is set to false , why is the call not reaching the server

How do i make sure that any ajax call hits the server after the session is timed out

Any inputs would be helpful

Cheers
n4v33n
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Which browser(s) does this happen in?


GenRocket - Experts at Building Test Data
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

If the URL is unique every time, it cannot be a caching issue.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
wood burning stoves
 
subject: jQuery , session timeout and cache issues
 
Similar Threads
What does IE 8 Cache?
JSP page getting timed out for a time consuming process
session out problem
How to achieve session managemetn in servlet for ended session scenario
DWR reverse ajax interfering with session-timout