PDA

View Full Version : $sessionsinfo


AnhTuanCool
11-01-2004, 12:08 AM
Hey,

Just wonder do we have this kind of variable? ;)

Brad
11-01-2004, 12:52 AM
The session array is defined in the build_session(); function in sessions.php

$session = array(
'sessionhash' => fetch_sessionhash(),
'userid' => intval($userid),
'host' => SESSION_HOST,
'idhash' => SESSION_IDHASH,
'lastactivity' => TIMENOW,
'location' => WOLPATH,
'styleid' => intval($styleid),
'useragent' => USER_AGENT,
'loggedin' => 0
);

AnhTuanCool
11-01-2004, 01:14 AM
Oh okay, so I would use $session[] instead, thanks Brad ;)

Xenon
11-01-2004, 12:18 PM
$session[sessionurl] is missing in that array ;)

Brad
11-01-2004, 12:37 PM
$session[sessionurl] is missing in that array ;)
Because it is defined at the end of the file based on if the user uses cookies or not? ;)

Xenon
11-01-2004, 12:44 PM
yep, but it still belongs to that array, even if it's generated somewhere else ;)

Brad
11-01-2004, 04:56 PM
yep, but it still belongs to that array, even if it's generated somewhere else ;)
Blame it on the devs ;)

Xenon
11-01-2004, 07:34 PM
will do ^^

GreeceMonkey
07-03-2005, 06:38 PM
Can anybody tell me what the loggedin column is for. I am sure I am probally being stupid, but when I look through my session table, some have logged set to 1 and others have it det to 0, but the users with the loggedin set to 0 still are logged in.

Is it something to do with cookie detection ??

Graham