how to change Session state in the public class

  • Thread starter Thread starter aa
  • Start date Start date
A

aa

How to change Session state in the Public class.
I was creating the public sub in the public class with byref argument as
HTTPSESSIONSTATE and I want to change his value.
example:
Shared Sub DataDiena(ByVal hplName As HtmlAnchor, ByRef Data As
HttpSessionState)
end sub

How to change the value of "DATA"
 
Data("MyVariable") as usual (if you mean to change a session variable usable
through Data) ? Have you tried something and how does it fail ?

Not sure what is the exact problem but you could use also
System.Web.HttpContext.Current to get access to the current HTTP request...
 
You can't change the value of Session. You can operate on the Session object
by adding, deleting and modifying variables.

What do you want to achieve?

Eliyahu
 
Back
Top