Re: Strange problem with session and header("Location:script.php?".SID) - Mailing list pgsql-php

From Victor Yegorov
Subject Re: Strange problem with session and header("Location:script.php?".SID)
Date
Msg-id 20030506091336.GD16791@nordlb.lv
Whole thread Raw
In response to Strange problem with session and header("Location:script.php?".SID)  (Andrei Verovski (aka MacGuru) <andreil1@mail.starlett.lv>)
List pgsql-php
* 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

Attachment

pgsql-php by date:

Previous
From: Andrei Verovski (aka MacGuru)
Date:
Subject: Strange problem with session and header("Location:script.php?".SID)
Next
From:
Date:
Subject: First project done Thanks to your help :))