I have a question regarding formsauthentication and page authentication in general.
I am capturing 3 session variables once a user successfully logs into the application. On various pages throughout the application i use these variables. On *all* the pages, if the session("username") is not valued i redirect them back to the login page, for all the pages. However, i have to make sure i add code on every pages Page_Load to test for this session.
My question is this, is there an easier, more secure way of doing this? Can i use say the web.config to test for these variables and redirect if the session has been terminated?
Any advice/help is appreciated.
isdc.
I am capturing 3 session variables once a user successfully logs into the application. On various pages throughout the application i use these variables. On *all* the pages, if the session("username") is not valued i redirect them back to the login page, for all the pages. However, i have to make sure i add code on every pages Page_Load to test for this session.
My question is this, is there an easier, more secure way of doing this? Can i use say the web.config to test for these variables and redirect if the session has been terminated?
Any advice/help is appreciated.
isdc.