Webmastersite.net
Register Log In

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

Comments on How to figure out if a user is logged in

Philarmon
Beginner

Usergroup: Customer
Joined: Feb 19, 2005

Total Topics: 4
Total Comments: 8
Posted Mar 14, 2005 - 7:10 AM:

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
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 15, 2005 - 4:04 AM:

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.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.