pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Olbersen <dave@slickness.org>
To: Michael Fork <mfork@toledolink.com>
Cc: Timothy_Maguire@hartehanks.com
Cc: Paul Joseph McGee <mcgee@student.cs.ucc.ie>
Cc: pgsql-php@postgresql.org
Subject: Re: Re: Secure pages
Date: Tue, 13 Mar 2001 11:24:03 -0800 (PST)
Message-ID: <Pine.LNX.4.31.0103131123200.30154-100000@bubbles.electricutopia.net> (raw)
In-Reply-To: <Pine.BSI.4.21.0103131413060.13558-100000@glass.toledolink.com>

On Tue, 13 Mar 2001, Michael Fork wrote:

->The easiest way in PHP that I have found is to create a file called
->validate.php containing the following:
->
-><?
->  if ($HTTP_COOKIE_VARS["MyCookie"] != 'Some Value') {
->    header("Location: http://my.company.com/login";);
->  }
->?>
->
->and, after the user has logged in, set a cookie.  Then, for each page that
->should be for a logged-in user only, just include the validate.php file.

Boy that's not very secure...I could find your included file, see what 'Some
Value' is, and then just make my own cookie!

-- Dave




view thread (22+ messages)  latest in thread

Message-ID: <Pine.LNX.4.31.0103131123200.30154-100000@bubbles.electricutopia.net>
Permalink:  ../Pine.LNX.4.31.0103131123200.30154-100000@bubbles.electricutopia.net/
Also on:    postgresql.org/message-id/Pine.LNX.4.31.0103131123200.30154-100000@bubbles.electricutopia.net

 · 

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: dave@slickness.org, mfork@toledolink.com, Timothy_Maguire@hartehanks.com, mcgee@student.cs.ucc.ie
  Subject: Re: Secure pages
  In-Reply-To: <Pine.LNX.4.31.0103131123200.30154-100000@bubbles.electricutopia.net>
  References: <Pine.BSI.4.21.0103131413060.13558-100000@glass.toledolink.com> <Pine.LNX.4.31.0103131123200.30154-100000@bubbles.electricutopia.net>

* 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