• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jQuery , session timeout and cache issues

 
Naveen puttu
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which browser(s) does this happen in?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65122
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the URL is unique every time, it cannot be a caching issue.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic