Question about sessions
| From: | Garland foster | Date: | Wed, 24 Jul 2002 18:15:12 +0000 |
| Subject: | Question about sessions | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5416@lists.php.net to get a copy of this message | ||
Hi all,
I want to know the best solution to check if a session variable is set, if I use
{if $smarty.session.user eq 'admin'}
Code for admin
{else}
Code for normal users
{/if}
Then I have a problem if error_reporting is set to all because the index user cannot be found
in the compiled template.
Ideas?
Thanks,
Garland.