PHP Session,Loggin Var, and Javascript
<p>I am trying to figure out how to do this some the php file only loads once on loggin.</p>

<p>How could I do this?</p>

<p>Example: (that I came up with but not sure what to use).
Let say A=1 when the site loads up.  I log in and (if Global User is logged in and A=1 call or include welcome.php). </p>

<p>When the file is loaded the A=1 turns into variable of A=2 so that when I load the pages the welcome.php in this case will not load again.</p>

<p>On my logout page I need to set this value of A to be cleared of this session so A can be called to be 1 again after logout.</p>

<p>So, basically the file will only load once even if the pages are refreshed until user log out.
One more thing this is all done in smarty php using .tpl files.</p>
