I want to create a small application which has a login and log out and will need to check if the user is logged in using sessions in each page. I m new to struts2 and would like to know do i need to implement CreateSession Interceptor and also SessionAware. any help on this is appreciated . Thank you
Are you aware of JAAS? Let your container do the work of checking to see if someone is logged in. You can then check who the user is like so. When you need the session, just implement SessionAware in your Action.
Thank you Joe, I have this confusion going on between interceptor and interface.. SeesionAware is a an interface right, so while configuring that action in struts.xml do i need not include interceptor? Thanks once again