3
Answers

How to access a session variable throughout the project?

Ishika Tiwari

Ishika Tiwari

Jul 12
503
1

I'm working on an ASP.NET project, and I'm having trouble getting session variables to work across the entire project. Specifically, I'm saving a value to the session like this:

Session["ConsumerId"] = lobjlogin.ConsumerId;

However, when I try to access this session variable in different parts of the project, it's not working as expected.

Answers (3)