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
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. -Original Message- From: Roman Sanchez [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 1:

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-