[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

how to delete session in C#?

Posted on 2008-10-02
2
Medium Priority
?
3,939 Views
Last Modified: 2013-12-17
I have a code

Session["Member"]

How can I delete that session when user press logout?

0
Comment
Question by:techques
2 Comments
 
LVL 3

Accepted Solution

by:
JMT116 earned 75 total points
ID: 22625981
Session.Abandon;

This will end the current session and call session_end event.
0
 
LVL 16

Assisted Solution

by:Gyanendra Singh
Gyanendra Singh earned 75 total points
ID: 22626108
Session.Remove("Member ") -> if perticlluar session want to remove

for clear all session

use

Session. Abandon();
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
Planning to migrate your EDB file(s) to a new or an existing Outlook PST file? This video will guide you how to convert EDB file(s) to PST. Besides this, it also describes, how one can easily search any item(s) from multiple folders or mailboxes…
Hi, this video explains a free download that you can incorporate into your Access databases, or use stand-alone for contact management. Contacts -- Names, Addresses, Phone Numbers, eMail Addresses, Websites, Lists, Projects, Notes, Attachments…
Suggested Courses

612 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question