-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: bradpitt889
Message 1 in Discussion


Hi ashok,
 
In case of ASP.NET we are having various methods of authentication.
 
Such as form based authentication,
 
Windows authentication, Passport based authentication.
 
So in case if you use form based authentication when you log in you set a 
cookie varible which stores your user id and it creates a new session 
containing those values.
 
So when you say execute the log out code in which you say form.signout(). I 
dont remember exact code so it will redirect you to login page specified in 
your web.config file no matter you press back or forward button.

 
So You can also check that manually 
 
Example:
 
In your login page you set a session variable and in each page you check that 
session variable so when you find that variable is set to null you redirect the 
user to login screen or to an error page whatever you wish to.

 
So in logout code you can just close the session and thus set those session 
variable to null. So the above thing can be implemented.
 
But the above specified solution is not better as compared to features provided 
by authentication and authorization provided by asp.net. you better go througth 
authentication and authorization stuff in 
asp.net
 

-- 
Regards

Kunal Shah
(+91) 9342265409 


-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to