• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need to Session Expire by clicking on browser's refresh , back buttons  RSS feed

 
SraJaSpring Kumar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Am implementing one Application in Spring MVC and Hibernate, And I need to Implement Session Expiration upon Page Refresh,Hitting F5 Button and Pressing Browser's Back Button  in My Application.
So could you guys Please help me out from this Problem .Absolutely i have no Idea with the Scenario. I tried Something with the Use OF Filters  but Useless..


So Please provide me some Code Snippet to Work Out....


Thanks in Advance
 
Paul Clapham
Sheriff
Posts: 22841
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure that I understand that requirement. It looks like you're suggesting that if the user refreshes a page or uses the Back button to go back, then the user's session on the server should become expired. That seems like a strange requirement to me -- could you clarify that I have described it correctly?
 
SraJaSpring Kumar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Paul

Ya Whatever you understood is exactly correct.In India Some of the Banking Websites and also Some Indian Railway's Websites using this Functionality.

See In Gmail if We refresh the Page it reloads again but in my case i want expire the session...


Regards
Sraja
 
Paul Clapham
Sheriff
Posts: 22841
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That seems quite user-hostile to me. I'm surprised that website designers would go to that much trouble (no, it isn't a simple thing to do) to annoy their customers... are you really sure you really want to do that?
 
SraJaSpring Kumar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Paul I have a task to do that but really i don't know how to implement but i found some of websites having this particular Feature too...
 
SraJaSpring Kumar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul

So Any Idea on this Thread to Implement,I read Something about Post-Redirect-Get Design Pattern am not sure about it.
Just asking can we implement this Scenario by using mentioned Design Pattern
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!