Abandon Session

G

Guest

Hi all, If i issue the Session.Abandon command will that clear the whole
session or just the session variables. The reason i ask is i use forms
authentication (cookieless) to login to the app. I have a loginview control
on the master page which displays contents based on the login state. I have
no idea on how to logout the user. I issued the Session.Abandon command but
the loginview control still shows that i logged in.

Thanks
 
G

Guest

Houston,

FormsAuthentication.SignOut();
Session.Abandon();
Response.Redirect("Login.aspx");


HTH,
Peter
 

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

Top