Advertisement:

Author Topic: Is a User Logged In?  (Read 1575 times)

Offline blodder24

  • Semi-Newbie
  • *
  • Posts: 26
Is a User Logged In?
« on: February 26, 2009, 01:40:46 PM »
Hello,

 I logged into my admin account & did a var_dump of $context on my main website. It's showing that: $context['user']['is_logged'] = false. However, a var_dump of $context on the forums index shows that the user is logged in.

 How do I get the accurate $context for my main website?
« Last Edit: February 26, 2009, 01:44:24 PM by blodder24 »

Offline H

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,662
  • Gender: Male
Re: Is a User Logged In?
« Reply #1 on: February 26, 2009, 02:37:39 PM »
Is your forum on a separate subdomain from the main site? If it is, ensure that subdomain independent cookies are enabled
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

Offline blodder24

  • Semi-Newbie
  • *
  • Posts: 26
Re: Is a User Logged In?
« Reply #2 on: February 26, 2009, 02:40:47 PM »
The forum is in the folder: /forum on the main site. Do I have to do something to correct the independent cookies issue?

Offline H

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,662
  • Gender: Male
Re: Is a User Logged In?
« Reply #3 on: February 27, 2009, 03:28:45 PM »
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)