sql server - Cookies not working with SqlServer session state mode -


i have .net mvc4 application following in web.config under system.web section:

<sessionstate      mode="sqlserver"      sqlconnectionstring="data source=db;userid=user;password=pass;"     cookieless="false"      timeout="20"/> 

when run site not see cookie on page nor saved in database. if change cookieless="true" session id saved in database.

how can sqlserver session state work cookies?

the session saved database when cookie explicitly added.

example: httpcontext.session["hello"] = "hello";

i assumed cookie generated page loaded , when didn't see thought had problem. incorrect , correctly see cookie when add session state.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -