[PHP-DB] Session understanding

2002-09-26 Thread Rodrigo
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.phplogging in/a again or

RE: [PHP-DB] Session understanding

2002-09-26 Thread Steve Bradwell
If you include the other page AFTER you do this check you'll be fine. So run your if statement and then add an else...include other.php; HTH, Steve. -Original Message- From: Rodrigo [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 9:38 AM To: PHP Subject: [PHP-DB] Session

RE: [PHP-DB] Session understanding

2002-09-26 Thread Griffiths, Daniel
in the same way that you can read included .js and .css files. -Original Message- From: NIPP, SCOTT V (SBCSI) [mailto:[EMAIL PROTECTED]] Sent: 26 September 2002 15:57 To: Griffiths, Daniel; Steve Bradwell; Rodrigo; PHP Subject: RE: [PHP-DB] Session understanding Can't you get

RE: [PHP-DB] Session understanding

2002-09-26 Thread Ford, Mike [LSS]
-Original Message- From: Griffiths, Daniel [mailto:[EMAIL PROTECTED]] Sent: 26 September 2002 16:09 as long as that same session code is present at the top of all the included files that are put in later. basicaly you need to put the session code in every page (even if you only