From: Victor Yegorov <viy@nordlb.lv>
To: Andrei Verovski (aka MacGuru) <andreil1@mail.starlett.lv>
Cc: pgsql-php@postgresql.org
Subject: Re: Strange problem with session and header("Location:script.php?".SID)
Date: Tue, 6 May 2003 12:13:36 +0300
Message-ID: <20030506091336.GD16791@nordlb.lv> (raw)
In-Reply-To: <AC81767C-7F9E-11D7-A7C4-00039354BD3E@starlett.lv>
References: <AC81767C-7F9E-11D7-A7C4-00039354BD3E@starlett.lv>
* Andrei Verovski <andreil1@mail.starlett.lv> [06.05.2003 12:06]:
> Hi,
>
> I have very strange problem with sessions (it is not directly related
> to postgres, although I am using pgsql in my app).
It's still off-topic.
> header("Location:StartupPage.php?".SID);
I think in PHP you should use $SID, not just SID.
In your case SID is changed to string "SID" (default behaviour, may differs
in different versions of PHP). In such cases PHP generates warnings.
May be should change error reporting level during debug stage:
error_reporting(E_ALL);
Hope that helps.
--
Victor Yegorov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: viy@nordlb.lv, andreil1@mail.starlett.lv
Subject: Re: Strange problem with session and header("Location:script.php?".SID)
In-Reply-To: <20030506091336.GD16791@nordlb.lv>
References: <AC81767C-7F9E-11D7-A7C4-00039354BD3E@starlett.lv> <20030506091336.GD16791@nordlb.lv>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox