asp.net - Session_end with cookies values -


I am trying to save data from users ending in session session with session_end on global asax .

The problem is that I am saving the user name in the m cookies` values ​​and when the session is over it can not reach this value, refernce is empty,

What is my question, how can I save the username used by the session, later I can put it in the session_end method.

The user starts with a login session, Can store

  HttpCookie aCookie = new HttpCookie ("userName"); reaction. Cookies ["user name"]. Value = "Foonam";  

Add cookie

  feedback. Add cookies (single);  

Comments

Popular posts from this blog

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

sql server ce - Is there some way to make sqlce3.5 and 4.0 co-exist in the C# project -