X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 35B1514B2825 for ; Wed, 11 Aug 2004 17:37:09 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 55393-04 for ; Wed, 11 Aug 2004 20:37:06 +0000 (GMT) Received: from mta0.beanfield.net (unknown [66.207.192.6]) by svr1.postgresql.org (Postfix) with ESMTP id 0C7FE14B2824 for ; Wed, 11 Aug 2004 17:37:04 -0300 (ADT) Received: from [192.168.205.247] (gw2tor1nat161.beanfield.net [66.207.192.161]) by mta0.beanfield.net (8.12.11/8.12.6) with ESMTP id i7BKaukn026346; Wed, 11 Aug 2004 16:36:57 -0400 (EDT) (envelope-from lynna@gallery44.org) User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 Date: Wed, 11 Aug 2004 16:37:36 -0400 Subject: Re: Strange session problem From: Lynna Landstreet To: Cc: Andres Ferrando Message-ID: In-Reply-To: <411A314B.7090009@mecon.gov.ar> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests=HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200408/16 X-Sequence-Number: 2904 on 8/11/04 10:46 AM, Andres Ferrando at anferr@mecon.gov.ar wrote: > Some ideas: > > be sure that the index yo you use in $_SESSION (if any), is integer or > string, and you aren't using array or similar as index. It just uses numeric keys - i.e. [0], [1], [2], etc. I assigned the image_id array from the previous page to $_SESSION directly, as in $_SESSION = $image_id. And then printed $_SESSION with print_r and everything seemed OK, but when I go to the next page, $_SESSION is empty. > how do you go to second page? if you use a header(rediret), you need to > pass SID explicit. It goes to the second page by submitting a form. > if nothing works, try posting code (important parts, as less) OK. Here it is. I've deleted irrelevant parts, like most of the HTML, and just replaced them with notes in square brackets: ------------------------------------------------------------------------- [HTML header stuff] [That include file is just the database connection, which is called on every page] [More HTML stuff - end of head section, beginning of body, navigation, etc.] \n\nSession Contents:\n\n"; print_r ($_SESSION); // that works, so as of this part, the correct data is in $_SESSION echo ""; ?> [a little more HTML]
[yet more HTML, ending the page] ------------------------------------------------------------------------- Does that help? Lynna -- Resource Centre Database Coordinator Gallery 44: www.gallery44.org Database Project: www.gallery44db.org