Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id CF76A475ABD for ; Thu, 30 May 2002 03:33:39 -0400 (EDT) Received: from virtual1.giganet.nl (tarantula.giganet.nl [212.125.143.1]) by postgresql.org (Postfix) with ESMTP id BA658475AAA for ; Thu, 30 May 2002 03:33:37 -0400 (EDT) Received: from artemis.cuci.nl (artemis.cuci.nl [212.125.128.9]) by virtual1.giganet.nl (BuGless_3.01) with ESMTP id g4U7Xc626979 for ; Thu, 30 May 2002 09:33:38 +0200 Received: from adlsa ([10.1.12.174]) by artemis.cuci.nl (BuGless_3.01) with ESMTP id g4U7XZFR014959 for ; Thu, 30 May 2002 09:33:37 +0200 Message-Id: <200205300733.g4U7XZFR014959@artemis.cuci.nl> Received: from Spooler by adlsa (Mercury/32 v3.31) ID MO00058B; 30 May 02 09:35:22 +0200 Received: from spooler by arbodienst-limburg.nl (Mercury/32 v3.31); 30 May 02 09:30:52 +0200 From: "Jules Alberts" Organization: ARBOdienst Limburg BV To: pgsql-php@postgresql.org Date: Thu, 30 May 2002 09:30:37 +0200 MIME-Version: 1.0 Subject: Re: variable visibility when using Reply-To: jules.alberts@arbodienst-limburg.nl In-reply-to: <3CF4EEEA.5040006@centennialwines.com> X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Archive-Number: 200205/111 X-Sequence-Number: 1243 On 29 May 2002 at 10:08, David C. Brown wrote: > How about using a session? > > session_start() > $password="fubar"; > session_register("password"); > > > then on the next page (sub.php) call session_start(); again and > $password will become visable. > > see http://www.php.net/manual/en/function.session-start.php > > Dave thanks Dave, i didn't know the concept of sessions. i had a google on the subject, i guess using $_SESSION would be the safest approach. i'll have a good look at it first before using it, the password stored will give access to a database with privacy-sensitive data, so safety is very important. -- Jules Alberts