I've been working on a few sites for a client. The first of which can log in and have the session variable as well as a the {logged_in} tag read just fine.
The second, it doesn't matter how I log in (CP successfully logs in, for example, or through freemember or even EE's native membership form), it doesn't seem to read the {if logged_in} tag. The session variable is also blank.
Config files are lined up as explained in the MSM guide, and data can be written to the DB through channel forms, but I can't for the life of me figure out why I can't get the login state. It's driving me nuts.
I've gone as far as stripping down to the following code to test, and still nothing:
{if logged_in}
<?php
$user_data = ee()->session->userdata("member_id");
echo "UD: ".print_r($user_data,1);
?>
YOU ARE LOGGED IN<Br><br>
DEBUG<BR>
Email: {email}<br>
GR ID: {group_id}<Br>
ID: {member_id}<br>
Name: {username}<br>
LIMID: {logged_in_member_id}
{/if}
{if logged_out}
YOU AREN'T LOGGED IN
{/if}
Any ideas where to start looking for a solution?
Vince.