Свойство | Type | Description | |
---|---|---|---|
Data | System.Web.SessionState.SessionStateItemCollection | ||
DataCas | ulong | ||
Flag | SessionStateActions | ||
HeadCas | ulong | ||
LockId | ulong | ||
LockTime | System.DateTime | ||
Timeout | int |
Méthode | Description | |
---|---|---|
Load ( IBucket bucket, string id, bool metaOnly ) : |
Loads a session state item from the bucket
|
|
Load ( string headerPrefix, string dataPrefix, IBucket bucket, string id, bool metaOnly ) : |
Loads a session state item from the bucket. This function is publicly accessible so that you have direct access to session data from another application if necesssary. We use this so our front end code can determine if an employee is logged into our back end application to give them special permissions, without the session data being actually common between the two applications.
|
|
Remove ( IBucket bucket, string id ) : void |
Removes a session store item from the bucket
|
|
SaveAll ( IBucket bucket, string id, bool useCas, bool &keyNotFound ) : bool |
Saves the session store into Couchbase
|
|
SaveData ( IBucket bucket, string id, bool useCas, ResponseStatus &status ) : bool |
Saves the session store data into Couchbase
|
|
SaveHeader ( IBucket bucket, string id, bool useCas, ResponseStatus &status ) : bool |
Saves the session store header into Couchbase
|
|
ToStoreData ( |
Creates a session store data object from the session data
|
Méthode | Description | |
---|---|---|
LoadHeader ( Stream s ) : |
Loads a sessions store header data from the passed in stream
|
|
WriteHeader ( Stream s ) : void |
Writes the header to the stream
|
public static Load ( IBucket bucket, string id, bool metaOnly ) : |
||
bucket | IBucket | Couchbase bucket to load from |
id | string | Session ID |
metaOnly | bool | True to load only meta data |
Résultat |
public static Load ( string headerPrefix, string dataPrefix, IBucket bucket, string id, bool metaOnly ) : |
||
headerPrefix | string | Prefix for the header data |
dataPrefix | string | Prefix for the real data |
bucket | IBucket | Couchbase bucket to load from |
id | string | Session ID |
metaOnly | bool | True to load only meta data |
Résultat |
public static Remove ( IBucket bucket, string id ) : void | ||
bucket | IBucket | Bucket to remove from |
id | string | Session ID |
Résultat | void |
public SaveAll ( IBucket bucket, string id, bool useCas, bool &keyNotFound ) : bool | ||
bucket | IBucket | Couchbase bucket to save to |
id | string | Session ID |
useCas | bool | True to use a check and set, false to simply store it |
keyNotFound | bool | True if |
Résultat | bool |
public SaveData ( IBucket bucket, string id, bool useCas, ResponseStatus &status ) : bool | ||
bucket | IBucket | Couchbase bucket to save to |
id | string | Session ID |
useCas | bool | True to use a check and set, false to simply store it |
status | ResponseStatus | The |
Résultat | bool |
public SaveHeader ( IBucket bucket, string id, bool useCas, ResponseStatus &status ) : bool | ||
bucket | IBucket | Couchbase bucket to save to |
id | string | Session ID |
useCas | bool | True to use a check and set, false to simply store it |
status | ResponseStatus | |
Résultat | bool |
public ToStoreData ( |
||
context | HttpContext to use | |
Résultat | System.Web.SessionState.SessionStateStoreData |
public SessionStateItemCollection,System.Web.SessionState Data | ||
Résultat | System.Web.SessionState.SessionStateItemCollection |