Solved

how to delete session in C#?

Posted on 2008-10-02
2
3,923 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 25 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 25 total points
ID: 22626108
Session.Remove("Member ") -> if perticlluar session want to remove

for clear all session

use

Session. Abandon();
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

786 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