• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

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

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Marshal
Posts: 27531
88
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Marshal
Posts: 27531
88
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic