I am trying to get a PHP script to workwithin a custom template. After many hours i gave up because it just don't work within that many includes (index, wrapper, template and script). Anyways, it would do fine if i had a (PHP) page that matches my design but the navigation should be different if a user was previously logged in or not. So how can i figure out if someone is logged in - on a standalone PHP page - without all headers, wrappers etc ?
Comments on How to figure out if a user is logged in
Beginner
Usergroup: Customer
Joined: Feb 19, 2005
Total Topics: 4
Total Comments: 8
Hi !
I am trying to get a PHP script to workwithin a custom template. After many hours i gave up because it just don't work within that many includes (index, wrapper, template and script). Anyways, it would do fine if i had a (PHP) page that matches my design but the navigation should be different if a user was previously logged in or not. So how can i figure out if someone is logged in - on a standalone PHP page - without all headers, wrappers etc ?
Thank you !.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Just check for the cookie, $_COOKIE['wsnuser']
Of course this means your cookie path/domain has to be set so that the other page you're making can see the cookie.