Click here to Skip to main content
16,019,614 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

Can some explain why session is stored in ASPState database only if I set attribute cookieless="true" in sessionState.
I have used inbuilt login and register template of Visual studio 2013.
below are the sessionState tag which I have used.
HTML
sessionState mode="SQLServer" allowCustomSqlDatabase ="true"
                 sqlConnectionString ="Data Source=ServerName;User ID=sa;Password=sa123;" cookieless="false" 

If is set cookieless="false" then the session is not getting stored in ASPState database.

Can you please someone explain why session is not getting stored in ASPState database when I set cookieless="false"?

Thank you in advance.
Amit
Posted
v3
Comments
Wombaticus 11-Dec-15 7:24am    
cookieless=false means that session state is stored in a cookie
ZurdoDev 11-Dec-15 7:27am    
No, it means the session id is stored in a cookie and then passed to the server via cookie.
ZurdoDev 11-Dec-15 7:27am    
What makes you think it is not working? Because it should work fine with cookieless=false.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900