How to kill session?
Answers were Sorted based on User's Feedback
There is nothing like Session.Kill in ASP.NET. So please
update this. Best answer is Session.Abandon
| Is This Answer Correct ? | 23 Yes | 3 No |
Answer / prajeesh
You can use
Session.Abandon();
Or
Session.RemoveAll();
or
Session.Clear();
But it is better to use Session.Abandon()
because it will removes associated session is also
http://prajeeshkk.blogspot.com/
http://dotnetbird.wordpress.com/
| Is This Answer Correct ? | 18 Yes | 6 No |
Answer / anil
there are two ways to kill the session
1:abandon method
2:don't write anything in session it will automatically
kill
| Is This Answer Correct ? | 13 Yes | 7 No |
Answer / siva vardhan
We can use these to clear session
Session.Abandon();
this.sessio.clear();
| Is This Answer Correct ? | 8 Yes | 4 No |
how can create login from create and written conde in asp.net
what is purpose of xml control in standard controls of asp.net
What is the difference between a page theme and a global theme?
What is difference between ASP and ASP.NET ?
Difference between Dataset and DataReader ?
4 Answers Accenture, BirlaSoft, Infosys, Microsoft, Techseol,
How can you identify that the page is post back?
What is asp.net web pages?
List the advantages and disadvantages of user control an custom control?
Tell About Web.config ?
How can we Deploy a website?
What does it mean your session has timed out?
how to include timer or counting time to display next page in asp.net
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)