How to detect expired or idled sessions on liveuser?
| From: | Louie Miranda | Date: | Wed, 26 Jul 2006 00:19:30 +0000 |
| Subject: | How to detect expired or idled sessions on liveuser? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-24763@lists.php.net to get a copy of this message | ||
I currently have this code which checks the current logged-on user for
permission rights.
if (!$usr->isLoggedIn() || !$usr->checkRight(PDF_PROOFING_VIEW)) {
echo 'Sorry but you cannot access this page';
exit;
}
If LU did not found the permission for that user, it gives and error of..
Sorry but you cannot access this page
Since last week, i was able to work on the LU and it really gives great
permission and user control, it just takes a little reading and you really
have to focus on the document / tutorial they've have given to fully
understand how it works. Well, Im still trying to cope up with some things
that i dont understand yet, but im happy i was able to use it now. Well,
anyway back to the topic.
I tried putting this into the code..
if (!$usr->isLoggedIn() || !$usr->checkRight(PDF_PROOFING_VIEW)) {
echo 'Sorry but you cannot access this page';
exit;
} else {
echo 'Your account has been idle and has expired already';
};
But, things didn't work out the way i want it to be. How can i detect
expired or idled sessions on LU?.
--
Louie Miranda (lmiranda@gmail.com)
http://www.axishift.com
//JSM-W