Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FormsAuthentication Question

Status
Not open for further replies.

AppzDev

MIS
Oct 9, 2002
57
US
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 started to explore using the global.asax file but never really found anything concrete that fully showed what i wanted to do. I'll have a look at those examples.

Thank You for the tip.
 
Good luck. If you have any questions regarding implementation just post them back here.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top