how to delete session in C#?

I have a code

Session["Member"]

How can I delete that session when user press logout?

techquesAsked:
Who is Participating?
 
JMT116Commented:
Session.Abandon;

This will end the current session and call session_end event.
0
 
Gyanendra SinghArchitectCommented:
Session.Remove("Member ") -> if perticlluar session want to remove

for clear all session

use

Session. Abandon();
0
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.

All Courses

From novice to tech pro — start learning today.