Свойство | Type | Description | |
---|---|---|---|
DataPrefix | string | ||
HeaderPrefix | string |
Méthode | Description | |
---|---|---|
Application_End ( object sender, |
Handles the End event of the Application control.
|
|
CouchbaseSessionStateProvider ( ) : System |
Required default ctor for ASP.NET
|
|
CouchbaseSessionStateProvider ( IBucket bucket ) : System |
For unit testing only.
|
|
CreateNewStoreData ( |
Takes as input the HttpContext instance for the current request and the Timeout value for the current session, and returns a new SessionStateStoreData object with an empty ISessionStateItemCollection object, an HttpStaticObjectsCollection collection, and the specified Timeout value. The HttpStaticObjectsCollection instance for the ASP.NET application can be retrieved using the GetSessionStaticObjects method.
|
|
CreateUninitializedItem ( |
Creates an uninitialized item in the database. This is only used for cookieless sessions regenerateExpiredSessionId attribute is set to true, which causes SessionStateModule to generate a new SessionID value when an expired session ID is encountered.
|
|
Dispose ( ) : void |
Handle disposing of the session-state store object
|
|
EndRequest ( |
Takes as input the HttpContext instance for the current request and performs any cleanup required by the session-state store provider.
|
|
GetItem ( |
Returns read-only session-state data from the session data store
|
|
GetItemExclusive ( |
Returns read-write session-state data from the session data store
|
|
GetSessionStoreItem ( IBucket bucket, |
Retrieves the session data from the data source. If the lockRecord parameter is true (in the case of GetItemExclusive), then the record is locked and we return a new lockId and lockAge.
|
|
Initialize ( string name, NameValueCollection config ) : void |
Function to initialize the provider
|
|
InitializeRequest ( |
Takes as input the HttpContext instance for the current request and performs any initialization required by the session-state store provider.
|
|
ReleaseItemExclusive ( |
Releases a lock on an item in the session data store
|
|
RemoveItem ( |
Deletes item data from the session data store
|
|
ResetItemTimeout ( |
Updates the expiration date and time of an item in the session data store
|
|
SetAndReleaseItemExclusive ( |
Updates the session-item information in the session-state data store with values from the current request, and clears the lock on the data
|
|
SetItemExpireCallback ( SessionStateItemExpireCallback expireCallback ) : bool |
Function to set the session data expiration callback. Since this is not supported by our database, we simply return false here and do manual session cleanup.
|
public Application_End ( object sender, |
||
sender | object | The source of the event. |
e | The |
|
Résultat | void |
public CouchbaseSessionStateProvider ( ) : System | ||
Résultat | System |
public CouchbaseSessionStateProvider ( IBucket bucket ) : System | ||
bucket | IBucket | |
Résultat | System |
public CreateNewStoreData ( |
||
context | HttpContext for the current request | |
timeout | int | Timeout value for the session |
Résultat | System.Web.SessionState.SessionStateStoreData |
public CreateUninitializedItem ( |
||
context | HttpContext for the current request | |
id | string | Session ID for the new session |
timeout | int | Timeout value for the session |
Résultat | void |
public EndRequest ( |
||
context | HttpContext for the current request | |
Résultat | void |
public GetItem ( |
||
context | HttpContext for the current request | |
id | string | Session ID for the session |
locked | bool | Returns true if the session item is locked, otherwise false |
lockAge | System.TimeSpan | Returns the amount of time that the item has been locked |
lockId | object | Returns lock identifier for the current request |
actions | SessionStateActions | Indicates whether the current sessions is an uninitialized, cookieless session |
Résultat | System.Web.SessionState.SessionStateStoreData |
public GetItemExclusive ( |
||
context | HttpContext for the current request | |
id | string | Session ID for the session |
locked | bool | Returns true if the session item is locked, otherwise false |
lockAge | System.TimeSpan | Returns the amount of time that the item has been locked |
lockId | object | Returns lock identifier for the current request |
actions | SessionStateActions | Indicates whether the current sessions is an uninitialized, cookieless session |
Résultat | System.Web.SessionState.SessionStateStoreData |
public static GetSessionStoreItem ( IBucket bucket, |
||
bucket | IBucket | Reference to the couchbase bucket we are using |
context | HttpContext for the current request | |
acquireLock | bool | True to aquire the lock, false to not aquire it |
id | string | Session ID for the session |
locked | bool | Returns true if the session item is locked, otherwise false |
lockAge | System.TimeSpan | Returns the amount of time that the item has been locked |
lockId | object | Returns lock identifier for the current request |
actions | SessionStateActions | Indicates whether the current sessions is an uninitialized, cookieless session |
Résultat |
public Initialize ( string name, NameValueCollection config ) : void | ||
name | string | Name of the element in the configuration file |
config | NameValueCollection | Configuration values for the provider from the Web.config file |
Résultat | void |
public InitializeRequest ( |
||
context | HttpContext for the current request | |
Résultat | void |
public ReleaseItemExclusive ( |
||
context | HttpContext for the current request | |
id | string | Session ID for the session |
lockId | object | The lock identifier for the current request |
Résultat | void |
public RemoveItem ( |
||
context | HttpContext for the current request | |
id | string | Session ID for the session |
lockId | object | The lock identifier for the current request |
item | System.Web.SessionState.SessionStateStoreData | Item to be deleted (ignored) |
Résultat | void |
public ResetItemTimeout ( |
||
context | HttpContext for the current request | |
id | string | Session ID for the session |
Résultat | void |
public SetAndReleaseItemExclusive ( |
||
context | HttpContext for the current request | |
id | string | Session ID for the session |
item | System.Web.SessionState.SessionStateStoreData | The session state item to be stored |
lockId | object | The lock identifier for the current request |
newItem | bool | True if this is a new session item, false if it is an existing item |
Résultat | void |
public SetItemExpireCallback ( SessionStateItemExpireCallback expireCallback ) : bool | ||
expireCallback | SessionStateItemExpireCallback | Session expiration callback to set |
Résultat | bool |