java - How to manage logged in session in spring mvc -
i have login controller autheticates userid , password , set userid in session , legacy can allways check userid key in session ..if present user logged in if not usr not authenticated particular request.
now problem approch every time have explicitly check userid field in session in controller (in fact in each function within controller) restricted login , in need not check ..as pages meant have public access.
what better ways handle loggedin/loggged out situation?? there spring specific approch??
you can use spring security http://static.springsource.org/spring-security/site/index.html
it of requirements out of box free.
Comments
Post a Comment