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 |
Define session in asp.net.
What are the different types of Caching techniques in ASP.NET?
What is the difference between trace and debug in asp.net?
Explain difference between friend and protected friend?
asp.net page is a object or not?
How can u handle Exceptions in Asp.Net?
WHT IS DIFFERENCES BETWEEN HTML CONTROLS AND SERVER CONTROLS.
We have 2 sites in which one site allows the user with out asking credentials and second one ask for credentials through a log page. What might be the configurations settings for both sites? We can use IIS and web.config files together.
Describe a Windows Service and its lifecycle ?
What is source control?How to use in asp.net?
Describe the application event handlers in ASP.NET?
How do I debug an ASP.NET application that wasn't written with Visual Studio.NET and that doesn't use code-behind?
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)