how to change Session state in the public class

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"
 
P

Patrice

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...
 
E

Eliyahu Goldin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top