PHP Classes

flag to tell if logged in

Recommend this page to a friend!

      AdminPro class  >  All threads  >  flag to tell if logged in  >  (Un) Subscribe thread alerts  
Subject:flag to tell if logged in
Summary:I want to be able to tell if it is logged in
Messages:4
Author:Brian Read
Date:2007-07-25 14:14:50
Update:2008-11-23 18:59:16
 

  1. flag to tell if logged in   Reply   Report abuse  
Picture of Brian Read Brian Read - 2007-07-25 14:14:50
I want to be able to "switch" a menu entry on a side panel to login/logout depending on whether the user is logged in or not. the panel is cntrolled by a CSS and is in a seperate file form the page displayed (it is "included").

I can't call "showpage" because it displays a login box if the user is logged out. is there a flag or function I can call to tell, with no side effects?

cheers

Brian

  2. Re: flag to tell if logged in   Reply   Report abuse  
Picture of Brian Read Brian Read - 2007-07-26 10:08:47 - In reply to message 1 from Brian Read
ok, I used the session variable "userID", that seems to work.

  3. Re: flag to tell if logged in   Reply   Report abuse  
Picture of clement G clement G - 2007-10-03 12:34:48 - In reply to message 2 from Brian Read
How did you do that ????

I have the very same problem, Could you explain !

Thxs

  4. Re: flag to tell if logged in   Reply   Report abuse  
Picture of ariful ariful - 2008-11-23 18:59:16 - In reply to message 1 from Brian Read
I'm also in the same situation. Sorry for my ignorance, i know a very little about PHP. I want to use a menu after login and then users may go to different pages after login. how to do this? would you please share your thoughts?

Thanks
Arif