Home How to get Session Value in C#
Reply: 0

How to get Session Value in C#

user439
1#
user439 Published in April 22, 2018, 4:53 am

I have a session set in my browser and I would like to retrieve the value of it:

I have tried:

@HttpContext.Current.Session["nolangask"].ToString()

and

@Session["nolangask"].ToString()

And a few other combinations that visual studio just outright rejected before I tried to run them. I feel I am probably missing something very basic...

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.297582 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO