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 many session modes are available?some brief explnation
What is use of Master Page in ASP.NET web pages?
0 Answers Sans Pareil IT Services,
What is difference between cache and session?
What are the intrinsic objects present in ASP.NET
what is use of web.config?
Why is it important to maintain session state?
Is it possible to write code in many languages in one asp.net project?
witch is the best insistute in sharpoint course.what abt future of share point course.
what is the differance between .DLL & .EXE
10 Answers Infinite Computer Solutions,
Why do I get error message "could not load type" whenever I browse to my asp.net web site?
To add a hyperlink column to the DataGrid which tag is used ?
Is viewstate secure?