can someone give me an example or link to one of using a session in asp.net mvc?
The same as in WebForms:
Use the HttpContext.Current.Session object.
HttpContext.Current.Session["UserName"] = "Jon";
string userName = HttpContext.Current.Session["UserName"];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With