problem with security

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

It maybe a simple one,but...
I made a web aplication in C# with a login page and everything,but I want to
make a Sign out section also.Well I am using a
Response.Redirect("login.aspx"),but when I get redirected back to the login
page,with simple clicking on the browsers back button I am all loged in as I
was before.Well, I want to sign out completely so after clicking the back
button I won't be able of using some elses account.Any suggestions?

P.S:Please don't laugh.I am kinda newbee with Visual Studio...
 
Use the

System.Web.Security.FormsAuthentication.SignOut();

method

Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richardb/weblog

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<[email protected]>

It maybe a simple one,but...
I made a web aplication in C# with a login page and everything,but I want to
make a Sign out section also.Well I am using a
Response.Redirect("login.aspx"),but when I get redirected back to the login
page,with simple clicking on the browsers back button I am all loged in as I
was before.Well, I want to sign out completely so after clicking the back
button I won't be able of using some elses account.Any suggestions?

P.S:Please don't laugh.I am kinda newbee with Visual Studio...

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004



[microsoft.public.dotnet.languages.csharp]
 
Place a LinkButton on the page where you wish to implement the Log Out
functionality and place the following code there.

FormsAuthentication.SignOut();

This will delete the FormsAuthentication cookie for the current session.

with regards,


J.V.Ravichandran
- http://www.geocities.com/
jvravichandran
- http://www.411asp.net/func/search?
qry=Ravichandran+J.V.&cob=aspnetpro
- http://www.southasianoutlook.com
- http://www.MSDNAA.Net
- http://www.csharphelp.com
- http://www.poetry.com/Publications/
display.asp?ID=P3966388&BN=999&PN=2
- Or, just search on "J.V.Ravichandran"
at http://www.Google.com
 
I tried this but it is not working.Shouldn't I change smth in Web.Config?Like
authentication mode is set to windows right now,and stuff like that.I am
still getting back to registered people area after clicking the back button.
 
Back
Top