Re: [PHP] Avoiding several windows with the same session

2003-02-07 Thread 1LT John W. Holmes
> If you are using cookies the new window will pick it up. Have the original > page change a variable to say that it has loaded then when the new window > loads have it check that variable first. How do you tell a "new window" from a "new request" though? You can't. The cookies are all there, the

RE: [PHP] Avoiding several windows with the same session

2003-02-07 Thread Dennis Cole Jr
:57 PM To: [EMAIL PROTECTED] Subject: [PHP] Avoiding several windows with the same session I place session_start(); if (!session_is_registered('somevar')) { header('location: login.php'); exit(); } at the top of all my pages to prevent people to view pages before

Re: [PHP] Avoiding several windows with the same session

2003-02-07 Thread 1LT John W. Holmes
> > I place > > > > session_start(); > > if (!session_is_registered('somevar')) > > { > > header('location: login.php'); > > exit(); > > } > > > > at the top of all my pages to prevent people to view pages before they log > > in. However, once thay have logged in succesfully, they can ctrl-

Fw: [PHP] Avoiding several windows with the same session

2003-02-07 Thread Kevin Stone
n why you need to do this? -Kevin - Original Message - From: "Roman Sanchez" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 11:56 AM Subject: [PHP] Avoiding several windows with the same session > I place > > session_start(); &

[PHP] Avoiding several windows with the same session

2003-02-07 Thread Roman Sanchez
I place session_start(); if (!session_is_registered('somevar')) { header('location: login.php'); exit(); } at the top of all my pages to prevent people to view pages before they log in. However, once thay have logged in succesfully, they can ctrl-U in IE to open a new window. This new win