returns the session object
-
boolean
$open: (open the session?)
void
get_rnd_iv
( $iv_len)
returns if we already have an instance
boolean
hasInstance
()
boolean
isSessionError
( &$aValue, mixed $aValue)
constructor
OCSP_SESSION
__construct
()
save session on descruct
void
__destruct
()
clears all user data from the session
void
clearUser
([boolean $debug = false])
closes a session and writes the data
void
closeSession
()
md5 decrypts a text
if $password is empty $_SESSION['MD5PWD'] is used
string
decrypt
(string $enc_text, [string $password = ""], [int $iv_len = 16])
-
string
$enc_text
-
string
$password
-
int
$iv_len
md5 encrypts a text
if $password is empty $_SESSION['MD5PWD'] is used
string
encrypt
(string $plain_text, [string $password = ""], [int $iv_len = 16])
-
string
$plain_text
-
string
$password
-
int
$iv_len
OCSP_USER
getUser
([
boolean $reqDB =
FALSE], [
boolean $debug =
FALSE])
-
boolean
$reqDB: (establish a database connection)
-
boolean
$debug
returns the stored userId
int
getUserId
([boolean $debug = False])
mixed
getValue
(string $aVarName, [boolean $debug = FALSE])
-
string
$aVarName
-
boolean
$debug
returns a default password for encrypt/decrypt
string
get_cryptPassword
()
starts the session
boolean
openSession
(string $aName, boolean $debug)
-
string
$aName
-
boolean
$debug
refreshes the user session
void
refreshUser
([boolean $withoutUsrDb = FALSE])
sets a session value which is not set
if $aVarName is already set in the session nothing is done and False returned
boolean
setDefaultValue
(string $aVarName, string $aValue, [boolean $debug = False])
-
string
$aVarName
-
string
$aValue
-
boolean
$debug
sets a session var value
mixed
setValue
(string $aVarName, mixed $aValue, [boolean $debug = False])
-
string
$aVarName
-
mixed
$aValue
-
boolean
$debug
void
unsetValue
(string $aVarName, [boolean $debug = False])
-
string
$aVarName
-
boolean
$debug