SESSIONS i JOOMLA !
Har problemer med at hente SESSION variable i JOOMLA.Når jeg laver en
PRINT_R ($_SESSION);
Får jeg
Array ( [__default] => Array ( [session.counter] => 29 [session.timer.start] => 1418842935 [session.timer.last] => 1418857065 [session.timer.now] => 1418857193 [session.client.browser] => Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 [registry] => Joomla\Registry\Registry Object ( [data:protected] => stdClass Object ( [users] => stdClass Object ( [login] => stdClass Object ( [form] => stdClass Object ( [data] => Array ( ) [return] => http://uddanop.dk/index.php ) ) ) [rememberLogin] => 1 ) ) [user] => JUser Object ( [isRoot:protected] => [id] => 327 [name] => Jakob Danker Linnet [username] => Danker [email] => danker@dadlnet.dk [password] => $2y$10$DlpGXug.QyTfFvXX/uMOnuER.gNuzmvmoW1cFO7h3hHLSA7DgaHJ. [password_clear] => [block] => 0 [sendEmail] => 0 [registerDate] => 2014-10-21 18:19:45 [lastvisitDate] => 2014-12-17 13:32:20 [activation] => [params] => {"activate":0,"admin_style":"","admin_language":"","language":"","editor":"","helpsite":"","timezone":""} [groups] => Array ( [2] => 2 [7] => 7 [10] => 10 ) [guest] => 0 [lastResetTime] => 0000-00-00 00:00:00 [resetCount] => 0 [requireReset] => 0 [_params:protected] => Joomla\Registry\Registry Object ( [data:protected] => stdClass Object ( [activate] => 0 [admin_style] => [admin_language] => [language] => [editor] => [helpsite] => [timezone] => ) ) [_authGroups:protected] => Array ( [0] => 1 [1] => 2 [3] => 6 [4] => 7 [6] => 10 ) [_authLevels:protected] => Array ( [0] => 1 [1] => 1 [2] => 2 [3] => 3 [4] => 5 [5] => 8 ) [_authActions:protected] => [_errorMsg:protected] => [_errors:protected] => Array ( ) [aid] => 0 [otpKey] => [otep] => [extreg] => stdClass Object ( [id] => 0 [form_id] => 0 [user_id] => 0 [notes] => [ip_addr] => [registerDate] => [lastvisitDate] => [params] => {} ) ) [session.token] => f615dc224ad74d5b7c22160a87e880f6 ) )
Hvordan udskriver jeg ex. [name] ?
print $_session['name']; ( fungerer ikke )
Jakob