Tuesday 15 July 2008 9:08:39 pm
Hi all, Sorry for the simple question, but I've googled a lot and couldn't find how to do it. Inside a template, what is the best and faster way to know if a user is logged in at the website? I want to limit some functionallity of my website to logged in users. In a website made without eZ Publish we probably could check it using $_SESSION variables. What about with eZ Publish? Btw, I found a fetch function that appears to do that: {if fetch( 'content', 'access', hash( ...) ) } {/if} Should I use that or there is a better solution?
Thank you Michael Scofield
|