• Welcome to Simple Machines Community Forum. Please login or sign up.
December 06, 2021, 09:57:12 AM

News:

SMF 2.1 RC4 has been released! Try it out and help us test! :) Read more.


Is a User Logged In?

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

Previous topic - Next topic

blodder24

February 26, 2009, 01:40:46 PM Last Edit: February 26, 2009, 01:44:24 PM by 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: