You are not logged in.
Pages: 1
Hi, is there any way to detect user logged in session?
for example:
If Admin is logged in > show this DIV
Offline
The easiest way is to use:
if ($_SESSION["bigtree_admin"]["id"] && $_COOKIE["bigtree_admin"]["email"]) {
}
The reason we check both the session and the cookie is in case there are two BigTree installs on the same domain (the session is set per domain, the cookie is properly set to the directory of the site).
Offline
Thanks a lot
So I'm guessing if I want to check it against users it would be?
if ($_SESSION["bigtree_user"]["id"] && $_COOKIE["bigtree_user"]["email"]) {
}
Offline
Pages: 1