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.
Get ASP in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.