Skip to main content
ATL Server Library Reference 
Session-State Reference 

The session-state classes and interfaces allow data to be stored in memory or a database using a common programmatic interface. This code can be found in atlsession.h.

Interfaces

ISession Interface

This interface allows the storage and retrieval of session-specific data.

ISessionStateService Interface

This interface provides methods for creating, retrieving, and closing session objects.

ISessionStateControl Interface

This interface provides methods for controlling ATL Server session-state settings.

Classes

CDefaultQueryClass Class

This class provides access to the SQL queries used for database-backed session-state.

CSessionStateService Class

Provides support for the maintenance and retrieval of session-state data.

CMemSession Class

This class provides an implementation of ISession that stores the session variables in memory.

CMemSessionServiceImpl Class

This class provides an in-memory based session-state implementation for use within ATL Server ISAPI extension DLLs.

CDBSession Class

This class template provides an implementation of ISession that stores the session variables in a database.

CDBSessionServiceImplT Class

This class provides a database-backed session-state implementation for use within ATL Server ISAPI extension DLLs.

Macros

ATL_SESSION_SWEEPER_TIMEOUT

This macro defines the frequency at which session data is maintained, in milliseconds.

ATL_SESSION_TIMEOUT

This macro defines the time, in milliseconds, after which an un-accessed session expires.

MAX_SESSION_KEY_LEN

This macro defines the maximum size allowed for a session name, in bytes.

MAX_CONNECTION_STRING_LEN

This macro defines the maximum length of the data source connection string used for session-state data storage.

MAX_VARIABLE_NAME_LENGTH

This macro is defines the maximum size of session-state data variable names.

MAX_VARIABLE_VALUE_LENGTH

This macro is defines the maximum size of session-state data values.

SESSION_COOKIE_NAME

This macro is used as the name of the cookie used for tracking session-state data.

See Also