<?php
print_r($_SESSION[’webEmail’]);
?>
You can access the following variables (+ a few others) of a logged in webuser from the session without any DB queries.
$_SESSION[webShortname]
$_SESSION[webFullname]
$_SESSION[webEmail]
$_SESSION[webValidated]
$_SESSION[webInternalKey]
$_SESSION[webValid]
$_SESSION[webUser]
$_SESSION[webFailedlogins]
$_SESSION[webLastlogin]
$_SESSION[webnrlogins]
$_SESSION[webUserGroupNames]
$_SESSION[webDocgroups]
you can use the following snippet to show all session variables, create a new snippet and call it at the bottom of a content page.
<?php
// ShowSession [!ShowSession!]
$output ="";
$output .= print_r($_SESSION);
return $output;
?>
-
☆ A M B ☆
- 24,524 Posts