pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christian Marschalek <cm@chello.at>
To: [PHP] PostgreSQL <pgsql-php@postgresql.org>
To: Chris <csmith@squiz.net>
Subject: RE: Re: Re: Secure pages
Date: Wed, 14 Mar 2001 02:40:43 +0100
Message-ID: <NEBBJIFEELNNHFCELNFJCEABCBAA.cm@chello.at> (raw)
In-Reply-To: <4.3.2.7.2.20010314092748.00b43b60@203.25.173.1>


> As someone else suggested, have a check on each page for a
> session variable
> (which of course is set when they login).
>
> <?
>          if (!isset($sessionvariable) {
>            header("Location:login.php");
>            exit;
>          }
> ?>

will do.. what excatly are session variables?

> This can be in an include file, as a function (just remember to globalise
> variables! I always forget :P), that way it will get checked on all your
> protected pages :)

globalise? there are no global variables in php, are they?;)

regards




view thread (22+ messages)  latest in thread

Message-ID: <NEBBJIFEELNNHFCELNFJCEABCBAA.cm@chello.at>
Permalink:  ../NEBBJIFEELNNHFCELNFJCEABCBAA.cm@chello.at/
Also on:    postgresql.org/message-id/NEBBJIFEELNNHFCELNFJCEABCBAA.cm@chello.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: cm@chello.at, csmith@squiz.net
  Subject: Re: Secure pages
  In-Reply-To: <NEBBJIFEELNNHFCELNFJCEABCBAA.cm@chello.at>
  References: <4.3.2.7.2.20010314092748.00b43b60@203.25.173.1> <NEBBJIFEELNNHFCELNFJCEABCBAA.cm@chello.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox