Abe Miessler
Abe Miessler

Reputation: 85046

Does ASP.NET Session state work without cookies?

According to MSDN:

By default, the SessionID value is stored in a non-expiring session cookie in the browser.

If I am trying to use Session State (I'm not using Cookieless Session IDs) and a users browser does not accept cookies, will Session State work?

Upvotes: 2

Views: 4685

Answers (1)

HeatfanJohn
HeatfanJohn

Reputation: 7333

According to this it is supported: http://msdn.microsoft.com/en-us/library/aa479314.aspx

<sessionState cookieless="true" />

The downside is that the session ID is placed in every URL used by the application:

http://yourserver/folder/(session ID here)/default.aspx

See this SO answer for additional details: Absolute URL Cookieless

Upvotes: 4

Related Questions