is it possible to manage session in jsf?? means when a user logs in he can access all the pages and when he log out. he cant access some specific pages. ???
Please help me out. All kinds of suggestions and solutions are warmly welcome regards.
Thanks Alot Bauke. for your Help would you please tell how can i store username in Session. and how can i remove it when user logs off . if Possible then please do put code snipet . Regards
Originally posted by Amir Iqbal: Thanks Alot Bauke. for your Help would you please tell how can i store username in Session. and how can i remove it when user logs off .
In JSF: use ExternalContext#getSessionMap(). In JSP/Servlet: use HttpSession#get/setAttribute().