by musashi on Thu May 15, 2008 1:44 pm
Hi,
I'm facing a similar issue. I have a company site that people log into. We create a session variable ($userid) when the log in. Each page in the site makes sure that $userid exists and isn't null. I want the entire blog system (both admin and the blogs themselves) to include a check for that the user has logged in to our company site first. I'm now assuming that the easiest way to do this is to use the sessionmanager.class.php class to set a session variable within LT that matches $userid and then each page checks that the variable exists. Is that accurate?
For example, if a user clicks on a link within our company site to the blogs, the link passes the $userid to the index.php page, where we register a new session variable with the sessionmanager.class.php...I guess it seems to me that there must be a simpler way, but what is happening now is that all the session data from our corporate site is lost when the user clicks the link to the blogs, so $userid no longer exists....
Thanks for any guidance on this!
Enlighten the people, generally, and tyranny and oppressions of body and mind will vanish like spirits at the dawn of day. - Thomas Jefferson