X-Original-To: pgsql-php@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id BD504474E4F for ; Sat, 22 Mar 2003 00:01:15 -0500 (EST) Received: from web80411.mail.yahoo.com (web80411.mail.yahoo.com [66.218.79.66]) by postgresql.org (Postfix) with SMTP id 64A85474E42 for ; Sat, 22 Mar 2003 00:01:14 -0500 (EST) Message-ID: <20030322050118.17564.qmail@web80411.mail.yahoo.com> Received: from [210.23.208.76] by web80411.mail.yahoo.com via HTTP; Fri, 21 Mar 2003 21:01:18 PST Date: Fri, 21 Mar 2003 21:01:18 -0800 (PST) From: Ludwig Lim Subject: Questions Regarding Sessions To: PostgreSQL Mailing List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Status: No, hits=1.2 required=5.0 tests=HTML_00_10 version=2.50-cvs X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 2.50-cvs (1.172-2003-02-14-exp) X-Archive-Number: 200303/29 X-Sequence-Number: 1941 Hi: I have the following small php files, t1.php and t2.php t1.php contains the ff: t2.php contains the ff: "); $x = $HTTP_SESSION_VARS["test"]; echo ("value of session = $x"); session_destroy(); } ?> The output I am getting when loading t2.php is the ff: Session is registered value of session = Instead of: Session if registered value of session = hello I've tried testing simple session scripts and it works, but initializing and using sessions in a function seems to be a problem for me. The session is registed, but the value of the session variable is missing. The session is created when I look at the /tmp directory and the the file ses. How can I make the script above to work? Some additional info: version : php 4 important configuration = --enable-track-vars --enable-trans-sid --with-apache= Thank you very much, ludwig. __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com