Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: blodder24 on February 26, 2009, 01:40:46 PM

Title: Is a User Logged In?
Post by: blodder24 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?
Title: Re: Is a User Logged In?
Post by: H 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
Title: Re: Is a User Logged In?
Post by: blodder24 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?
Title: Re: Is a User Logged In?
Post by: H on February 27, 2009, 03:28:45 PM
http://www.simplemachines.org/community/index.php?topic=295228

Please, don't double post