Forms Authentication SignOut

G

Guest

I have a problem when I signout of FormsAuthentication. When I signout I would like to go o a certain page not the login page. I have the following code

Session.Abandon(
Response.Cookies.Clear(
FormsAuthentication.SignOut(
Response.Redirect("LogOut.aspx"

For some reason I signout, it redirects me to my login page, eventhough I specify Redirect to a different page

What is wrong

Thanks...
 
C

Curt_C [MVP]

did you put in a <location></location> to exclude the Logout.aspx from the
authentication?

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com


Angel said:
I have a problem when I signout of FormsAuthentication. When I signout I
would like to go o a certain page not the login page. I have the following
code:
Session.Abandon()
Response.Cookies.Clear()
FormsAuthentication.SignOut()
Response.Redirect("LogOut.aspx")

For some reason I signout, it redirects me to my login page, eventhough I
specify Redirect to a different page.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,281
Latest member
Pedroaciny

Latest Threads

Top