
Mode | 411
SessionState
Class
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Message.Text &= "Current date and time is: " & DateTime.Now( ) & "</br>"
Session.LCID = 1036 'France
Message.Text &= "Current locale ID is: " & Session.LCID & "</br>"
Message.Text &= "Current date and time is: " & DateTime.Now( ) & "</br>"
End Sub
Notes
The LCID property is provided for backward compatibility with classic ASP. For
new ASP.NET development, you should use the System.Threading.Current-
Thread.CurrentCulture.LCID property instead. ASP.NET stores and retrieves the
Session.LCID property in System.Threading.CurrentThread.CurrentCulture.
LCID.
Mode
SessionStateMode = Session.Mode
Returns one of the values of the SessionStateMode enumeration that describes the
mode for which session state for the application has been configured.
Parameter
SessionStateMode
One of the following members of the
SessionStateMode enumeration:
InProc
Indicates that session state is stored in-process. This setting provides the
best performance when using session state storage, but cannot be shared
across multiple servers.
Off
Indicates that session state is disabled. This setting provides the best
performance overall, but at the expense of not using session state
storage.
SQLServer
Indicates that session state is stored out-of-process in a SQL Server data-
base. This setting allows ...