Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to delete session in C#?

Posted on 2008-10-02
2
Medium Priority
?
3,937 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

782 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