> 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
: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
> > 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-
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();
&
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
5 matches
Mail list logo