RE: Validation and session variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



See inline:

--- "Ford, Mike" <M.Ford@xxxxxxxxxxxxxx> wrote:


> The only circumstance under which I can think this
> might happen is if the
> session id is not being propagated by cookie --
> either because they're
> blocked in the browser, or because you have them
> switched off in php.ini.

They are not switched off in php.ini.  I do have them
"semi blocked" in the browser, i.e. set to "allow for
session"

> Even if you have session.use_trans_sid enabled,

It is enabled.

> PHP cannot rewrite URLs in the header() call, so you
> have to include the session ID manually.  
> You should do this regardless of whether you expect
> cookies to be enabled, so that it will work ok even
> > in the unexpected situation of having cookies
> turned off.
> 
> Fortunately, the standard PHP constant SID is
> provided for exactly this
> purpose, so your header call above should be:
> 
>    header("Location: $url?".SID);

This is all I need to include the SID ?

Thank you 
Stuart

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux