Discussion:
Session.Clear() vs. Session.RemoveAll()
(too old to reply)
Nathan Sokalski
2007-01-15 01:03:35 UTC
Permalink
Is there a difference between Session.Clear() and Session.RemoveAll()? The
descriptions and documentation pages seem to say exactly the same thing, but
I am assuming there must be some reason for creating two functions, right?
Thanks.
--
Nathan Sokalski
***@hotmail.com
http://www.nathansokalski.com/
Ray Costanzo
2007-01-15 03:55:03 UTC
Permalink
You are correc that they do the same exact thing. And that is because
.RemoveAll calls .Clear. So, why do they both exist? Got me! Perhaps it
was just a lack of communication when the MS employees were developing
asp.net.

Ray at home
Post by Nathan Sokalski
Is there a difference between Session.Clear() and Session.RemoveAll()? The
descriptions and documentation pages seem to say exactly the same thing,
but I am assuming there must be some reason for creating two functions,
right? Thanks.
--
Nathan Sokalski
http://www.nathansokalski.com/
Loading...