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

From: "Victor Yegorov" <viy(at)nordlb(dot)lv>
To: Andrei Verovski (aka MacGuru) <andreil1(at)mail(dot)starlett(dot)lv>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: Strange problem with session and header("Location:script.php?".SID)
Date: 2003-05-06 09:13:36
Message-ID: 20030506091336.GD16791@nordlb.lv
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

* Andrei Verovski <andreil1(at)mail(dot)starlett(dot)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

In response to

Browse pgsql-php by date

  From Date Subject
Next Message sam 2003-05-09 02:27:25 First project done Thanks to your help :))
Previous Message Andrei Verovski (aka MacGuru) 2003-05-06 08:42:30 Strange problem with session and header("Location:script.php?".SID)