X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 41853D1BB49 for ; Tue, 13 Apr 2004 06:43:04 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 18126-09 for ; Tue, 13 Apr 2004 06:43:05 -0300 (ADT) Received: from smtp-out5.xs4all.nl (smtp-out5.xs4all.nl [194.109.24.6]) by svr1.postgresql.org (Postfix) with ESMTP id B09F8D1B49F for ; Tue, 13 Apr 2004 06:43:01 -0300 (ADT) Received: from localhost.localdomain (kiar.xs4all.nl [80.126.234.5]) by smtp-out5.xs4all.nl (8.12.10/8.12.10) with ESMTP id i3D9h2k2052161 for ; Tue, 13 Apr 2004 11:43:03 +0200 (CEST) Received: by localhost.localdomain (Postfix, from userid 500) id CEC09B6EC3; Tue, 13 Apr 2004 11:43:02 +0200 (CEST) Date: Tue, 13 Apr 2004 11:43:02 +0200 From: Joolz To: pgsql-php@postgresql.org Subject: Re: session_is_started() Message-ID: <20040413094302.GA5884@localhost.localdomain> Reply-To: pgsql-php@postgresql.org Mail-Followup-To: pgsql-php@postgresql.org References: <20040408134031.GA13236@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/20 X-Sequence-Number: 2677 > [Tin schreef op 09-04-2004 07:35 +0200] > > Joolz wrote: > > I would like something like > > > > if (!session_is_started()) { // note: this function doesn't > > exist > > session_start(); > > } > > Hi, > > this is not really a postgres-related question, but what the > heck. Use session_id to detect if a session is started or not. > See: http://hr2.php.net/manual/en/function.session-id.php for an > example (user-contributed, at the bottom of the page). Great, thanks! -- 11:42-11:42 Fedora Core release 1 (Yarrow) Linux 2.4.22-1.2174.nptl