Accessing Session variables from custom class

G

Guest

hi, as i understand we can read session or cache objects from a custom class
using httpContext.Current.Session("..."). Is there a way to add/modify
Session variables from the custom class? httpContext.Current.Session("...")
doesn't seem to work :(

thanks.
 
A

AtulGupta

I tried building a custom class and modifying the session
variable inside. it worked without any problems. can you
share the code that you are trying to use.
 
G

Guest

Hi, thanks for your rsponse. I tried it again and it worked. I had a little
mistake in my code before. I was declaring the stuff in the wrong place.

Thanks again.
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top