Hi All the members in DaniWeb :cool:

I need to know how to end a created session when user log out from the web site..I have
created a web-site for my assignment..and i put Sessions..Each time user log in to system
it create session object and identifies the user..
What i need to know is i want to add some codes , when user log out from the web..( I think i need to destroy the created Session object.. ).
can any one help..Its not for assignment..its for my knowledge...
Thanks Everyone

8 Years
Discussion Span
Last Post by paslanmaz

Little addition to Scott's post. Session.Abandon() method cancels the current session and create a new session on next request.

Votes + Comments
hey buddy! its been a while :)

Session["Login"] = "true"; Creating

selected if (Session["Login"] != null)

Session["Login"].Abandon() Deleting

Votes + Comments
Way to get your sig links out there!
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.