• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 916
  • Last Modified:

ASP.NET logout session_end


I have an ASP.NET 4, C#, VWD2010 application with web form authentication.

I have a LoginStatus control in the masterpage. I thought that, when clicking on the logout action, apart from redirecting to the login page, the control also issued a session end but it doesn't seem the case.

Anyone know how to trigger a session end manually upon logging out?

Regards and thanks for making this a Value Added resource.
1 Solution
I think what you are wanting is to call Session.abandon. Here is an example of it being used: http://www.java2s.com/Tutorial/ASP.NET/0220__Sessions/EndasessionbycallingSessionAbandonC.htm
Dhanasekaran SengodanCommented:
Try this

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now