WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

How to figure out if a user is logged in
... whithout the use of templates

Version:
printPrint


How to figure out if a user is logged in
Philarmon
Beginner

Usergroup: Customer
Joined: Feb 19, 2005
Total Topics: 4
Total Posts: 8
Posted 03/14/05 - 07:10 AM:
quote post
#1
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 !.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6163
Posted 03/15/05 - 04:04 AM:
quote post
#2
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.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.