Classic ASP Framework
org.classicasp.server.SessionEx

[STATIC] A SessionEx object stores information about, or change settings for a user session.

Summary

Deletes the current session.
Authenticate the current session.
Authorize the current session.
Authenticate and authorize the current session.
The value from the tbl_system_session.
Is the session Anonymous.
Gets an item from the session collection.
Gets the items from the session collection.
The value from the tbl_system_session.
The value from the tbl_system_session.
The value from the tbl_system_session.
The value from the tbl_system_session.
The record from the tbl_system_session table.
The value from the tbl_system_session.
The value from the tbl_system_session.
The value from the tbl_system_session.
The record from the tbl_system_user table.
The value from the tbl_system_session.
Sets an item in the session collection to the specified value.
The value from the tbl_system_session.
The value from the tbl_system_session.
The value from the tbl_system_session.

Abandon

Deletes the current session.

Returns

BooleanEx

Authenticate

Public Sub Authenticate()
Authenticate the current session.

Returns

N/A

Authorize

Public Sub Authorize(ByRef sAuthorizationRoles)
Authorize the current session.

Returns

N/A

AuthX2

Public Sub AuthX2(ByRef sAuthorizationRoles)
Authenticate and authorize the current session.

Returns

N/A

[GET] Id

The value from the tbl_system_session.id field.

Returns

NumberEx - 0

[GET] IsAnonymous

Is the session Anonymous.

Returns

BooleanEx

[GET] Item

Gets an item from the session collection.

Returns

Variant

[GET] Items

Gets the items from the session collection.

Returns

ObjectEx

[GET] SessionCreated

The value from the tbl_system_session.timestamp_created field.

Returns

DateTimeEx - "2014-01-01 00:00:00"

[GET] SessionId

The value from the tbl_system_session.session field.

Returns

StringEx - "946EA7E26A58434198A4D78BC1A9A7D4"

[GET] SessionIdHash

The value from the tbl_system_session.session_hash field.

Returns

StringEx - "946EA7E26A58434198A4D78BC1A9A7D4"

[GET] SessionRate

The value from the tbl_system_session.rate field.

Returns

NumberEx - 0

[GET] SessionRecord

The record from the tbl_system_session table.

Returns

ObjectEx

[GET] SessionToken

The value from the tbl_system_session.token field.

Returns

StringEx - "AB83HF3343"

[GET] UserId

The value from the tbl_system_session.user_id field.

Returns

NumberEx - 0

[GET] UserName

The value from the tbl_system_session.user_name field.

Returns

StringEx - "user101"

[GET] UserRecord

The record from the tbl_system_user table.

Returns

ObjectEx

[GET] UserRole

The value from the tbl_system_session.user_role field.

Returns

StringEx - "Administrator"

[LET] Item

Sets an item in the session collection to the specified value.

Returns

N/A

[LET] UserId

The value from the tbl_system_session.user_id field.

[LET] UserName

The value from the tbl_system_session.user_name field.

[LET] UserRole

The value from the tbl_system_session.user_role field.

'***ClassicASP.org
'Copyright 2010 ClassicASP.org

'This file is part of ClassicASP Framework.

'ClassicASP-Framework is free software: you can redistribute it and/or modify
'it under the terms of the GNU General Public License as published by
'the Free Software Foundation, version 3 of the License.

'ClassicASP-Framework is distributed in the hope that it will be useful,
'but WITHOUT ANY WARRANTY; without even the implied warranty of
'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
'GNU General Public License for more details.

'You should have received a copy of the GNU General Public License
'along with ClassicASP-Framework. If not, see .

'For additional information please visit .