Unable to serialize the session state
When putting my application on a web server and trying to ‘log in’ I get the following error:
When putting my application on a web server and trying to ‘log in’ I get the following error:
What are the do’s and don’ts about Cache VS Session VS Cookies?
Question #1
I want to sign out a user when his session times out. So used following code in Global.asax:
I am trying to access the Session variable in Asp.Net ashx handler as shown below.
I had a little bit of code that I was duplicating for ASP.NET and SignalR and I decided to rewrite it as OWIN middleware to remove this duplication.
I have a website, its completely over HTTPS. Even if someone tries to access over HTTP he will be redirected to HTTPS. I am using forms authentication. Recently I changed a setting to make the site more secure and after that Session is not retaining values and is always returning null. The settings are,
By default, ASP.NET will set its cookies to use “mydomain.com” as their base. I’d prefer to have them use “www.mydomain.com” instead, so that I can have other “sub.mydomain.com” subdomains that are cookie-free.
What is the maximum size a session variable can hold ? I am trying to store object in session variable, if object size is under 80 KB, then working fine and if the size is greater than 80 KB then on retrieval I am getting an exception.
Hey I have the following line in my web.config