You are here: Re: sessions and redirecting in opera « PHP Programming Language « IT news, forums, messages
Re: sessions and redirecting in opera

Posted by amygdala on 08/13/07 10:50

Rik wrote:
> On Mon, 13 Aug 2007 12:33:20 +0200, amygdala <noreply@noreply.com>
> wrote:
>> Rik wrote:
>>>> I've set up little example (without the echo part in the redirect
>>>> method) which you should be able to access temporarily through:
>>>>
>>>> http://amygdala.kicks-ass.net/profile/
>>>>
>>>> (Please let me know if you are not able to access it.)
>>>
>>> HTTP/1.x 302 Moved Temporarily
>>> ...
>>> Set-Cookie: PHPSESSID=jhiktdcd4efk720iqahhhquokhm24ill; path=/
>>> Set-Cookie: PHPSESSID=upgdihd7gbiqnen492advkiu0c0piv4v; path=/
>>> Location: http://127.0.0.1/user/login/
>>> ...
>>>
>>> I haven't set up your site on my local box, so no, it's not working
>>> :).
>>
>> Errrr, sorry about that Rik, forgot to change
>>
>> define( 'ROOT_PATH', 'http://' . $_SERVER['SERVER_NAME'] );
>>
>> to
>>
>> define( 'ROOT_PATH', 'http://amygdala.kicks-ass.net' );
>
> Ah, and everything works like a charm :P (allthough the double
> set-cookie PHPSESSID should be taken care of).

Well, this double Set-Cookie should indeed not be happening. Although I do
use session_regenerate_id() (paranoid mode ;) on every request. But I don't
suspect that that causes two set-cookie's in one response.

What kind of tool are you using to analyse/view this information if you
don't mind telling me? Is there any HTTPLiveHeader thingy for Opera I am not
aware of?

Thanks in advance

> So, possibly a server/domain issue somewhere when developing locally,
> works OK on the net though.

Looks like that is the case, yes.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация