The Arcive of vBulletin Modifications Site. |
|
php and vB cookie question Details »»
|
|||||||||||||||||||||||||
Hi!
I'm developing a page outside vB that I want to display if the user is logged in or not. If he is logged in, display a log out link, and if he is not, display a logging form (username and password fields). I thinks I can do this reading the cookie that vB uses to see if it has a userid on it, but I don't know how to do this. Any idea would be great. Thanks Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Ok, let me see if asking the question a little more specific.
I need to check vB cookie to see if it has a user logged in. For example, for doing this Lets say $user_logged returns a true or false if the user cookie has an userid logged. PHP Code:
|
![]() |
|
|