The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall

UE3:Session (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT3 Object >> Session
Package: 
WebAdmin
Implemented interfaces
ISession

A session implementation

Copyright 2008 Epic Games, Inc. All Rights Reserved

Author: Michiel 'elmuerte' Hendriks

Properties[edit]

id[edit]

Type: string

Modifiers: protected


objects[edit]

Type: array<ObjectKV>

Modifiers: protected


strings[edit]

Type: array<StringKV>

Modifiers: protected


Structs[edit]

ObjectKV[edit]

string key 
Object value 

StringKV[edit]

string key 
string value 

Instance functions[edit]

getId[edit]

function string getId ()

Specified by: ISession.getId

Return the session identifier

getObject[edit]

function Object getObject (string key)

Specified by: ISession.getObject

Get an object instance from this session.

getString[edit]

function string getString (string key, optional string defValue)

Specified by: ISession.getString

Get a string from this session.

putObject[edit]

function putObject (string key, Object value)

Specified by: ISession.putObject

Add an object to the session

putString[edit]

function putString (string key, string value)

Specified by: ISession.putString

Add a string value to the session.

removeObject[edit]

function removeObject (string key)

Specified by: ISession.removeObject

Remove the entry with the given key

removeString[edit]

function removeString (string key)

Specified by: ISession.removeString

Remove the entry with the given key

reset[edit]

function reset ()

Specified by: ISession.reset

Reset the session's data. The ID will stay the same.