Received: from viemta06.chello.at (viemta06.chello.at [195.34.133.56]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f2E1dpx20830 for ; Tue, 13 Mar 2001 20:39:51 -0500 (EST) (envelope-from cm@chello.at) Received: from server ([212.17.110.55]) by viemta06.chello.at (InterMail vK.4.03.02.00 201-232-124 license 9caa03a7df1d31c048ffcc0d31ac5855) with SMTP id <20010314013948.FIIN20472.viemta06@server>; Wed, 14 Mar 2001 02:39:48 +0100 From: "Christian Marschalek" To: "[PHP] PostgreSQL" , "Chris" Subject: RE: Re: Re: Secure pages Date: Wed, 14 Mar 2001 02:40:43 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <4.3.2.7.2.20010314092748.00b43b60@203.25.173.1> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200103/19 X-Sequence-Number: 203 > 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