Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring MVC - Session Management

 
Shiaber Shaam
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there anyway session management can be done without using Spring Security? Could you please suggest a tutorial?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34401
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Session management has nothing to do with security. Is your question how to handle login/permissions without Spring Security?
 
Shiaber Shaam
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a login page. I need to get the username/password, validate it. Once validation is done, need to redirect to the home page. Also, after 30 min, i need to invalidate the session and if any of the url is accessed directly, need to check if there is a session active.

Please advise. Appreciate it.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34401
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you want to write login logic? This is already done and you can hook into it.

For the 30 minutes timeout, you specify a timeout in the web.xml.
 
Shiaber Shaam
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please elaborate on it?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic