Session understanding
| From: | Rodrigo | Date: | Thu, 26 Sep 2002 13:37:46 +0000 |
| Subject: | Session understanding | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-21998@lists.php.net to get a copy of this message | ||
Hi people,
if i use this code:
<?php
session_start();
if(empty($_SESSION['username'])) {
die('An error has ocurred. It may be that you have not logged in, or that your session has
expired.
Please try <a href="login.php">logging in</a> again or contact the
<a href="mailto:admin@example.com">system
administrator</a>');
}
?>
in one page to check if the user is logged, and in this same page i include another page, do i have
to put this same test in this page that is beiing included??? this question may be dumb but i don´t
know....thnaks a lot for the help.....
--------------------------------------------------------------------------------
Equipe Pratic Sistemas
Rodrigo Corrêa
Fone: (14) 441-1700
suporte@praticsistemas.com.br
rodrigo@praticsistemas.com.br