Name
ENABLESESSIONSTATE —
<%@ ENABLESESSIONSTATE=True|False%>
Synopsis
Turns the storage of user-specific
session information on (True) or off
(False). This value is True by
default.
Parameters
None
Example
<%@ ENABLESESSIONSTATE=False%> ' This code prevents the web server from storing ' user session information.
Notes
You also can enable session-state storage using the registry, but this directive allows significantly more flexibility (and on a script-by-script basis). If you have used a registry setting to control session-state information, then using this directive overrides that setting.
Setting this directive to False prevents you from
storing any information in session-scoped variables or objects. This
forces you to rely on other methods of maintaining information about
each user, if you need to. However, it does provide some benefits:
It does not rely on your clients' browsers using cookies.
It increases the speed with which your server scripting is processed by the web server.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access