Clearing the contents of session variables
Web Development
3
Posts
3
Posters
0
Views
1
Watching
-
I want to clear the contents of a specific session variables in ASP. Can anyone suggest me how to go about in doing this? It is very urgent. Thanks, Riz
-
I want to clear the contents of a specific session variables in ASP. Can anyone suggest me how to go about in doing this? It is very urgent. Thanks, Riz
What exactly do you mean by "to clear" in this case? To clear a string, you can replace it by string.Empty or null. To clear a numeric value, you can replace it by a zero value. If you want to remove the key from the session variables collection, use the Session.Remove method.
--- b { font-weight: normal; }