News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Is a User Logged In?

Started by blodder24, February 26, 2009, 01:40:46 PM

Previous topic - Next topic

blodder24

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?

H

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)
                             

blodder24

The forum is in the folder: /forum on the main site. Do I have to do something to correct the independent cookies issue?

H

-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

Advertisement: