This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages 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: 34973
379
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: 34973
379
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