I have my store in a directory www.mywebsite.com/rockstore
but my main website www.mywebsite.com/index.php i would like check to see if the person is logged into zencart.

i noticed the login/logout and my account uses this line of code

<? if (isset($_SESSION['customer_id'])) { ?>

but when i put that line of code into my main index.php it doesn't see that there is any existing session var's

i did print_r($_session); and there is no session var's when i do print_r from my main index.php but when i put print_r into my /rockstore/index.php it has this whole list of session vars.

can anyone point me in the right direction of what files i need to "include" and what not so that my main index.php i can check to see if the person is logged into zen cart.

thanks