470,624 Members | 2,511 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,624 developers. It's quick & easy.

reload of page required after formsAuthentication signout / logout?

Hello.

I have asp.net menu with a logout item.

I handle the the menu click as follows:

Protected Sub Menu_MenuItemClick(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.MenuEventArgs) Handles Menu.MenuItemClick
If Menu.SelectedValue = "Logout" Then
Response.Write("Logout")
FormsAuthentication.SignOut()

End If

But notice It does not log me out until resubmit the page.

How should I handle this? redirect to itself? whats the best way to
automatically reload the page in asp.net 2.0?

Thanks for any help or information.

Jul 12 '07 #1
1 2517
You could redirect to the same page, or you can perform a Server.Transfer
also, which doesn't require a browser round-trip.

-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder(BETA): http://www.blogmetafinder.com

"jobs" wrote:
Hello.

I have asp.net menu with a logout item.

I handle the the menu click as follows:

Protected Sub Menu_MenuItemClick(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.MenuEventArgs) Handles Menu.MenuItemClick
If Menu.SelectedValue = "Logout" Then
Response.Write("Logout")
FormsAuthentication.SignOut()

End If

But notice It does not log me out until resubmit the page.

How should I handle this? redirect to itself? whats the best way to
automatically reload the page in asp.net 2.0?

Thanks for any help or information.

Jul 12 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by George Durzi | last post: by
1 post views Thread by Xavier MT | last post: by
1 post views Thread by Tuan | last post: by
2 posts views Thread by nvv via DotNetMonster.com | last post: by
9 posts views Thread by Patrick Olurotimi Ige | last post: by
1 post views Thread by Anders Jacobsen | last post: by
2 posts views Thread by parez | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.