You are here: Re: Session ID changed everytime go to new page or reload. « PHP Programming Language « IT news, forums, messages
Re: Session ID changed everytime go to new page or reload.

Posted by Gordon Burditt on 04/10/07 23:16

>> Try looking at the cookie(s) on the browser. What domain(s) are they
>> in? There should be one cookie for each domain. Also try printing
>> $_COOKIE['PHPSESSID'] to see what cookie is getting sent to each page.
>>
>
>I try to execute print_r($_COOKIE);
>FF: both old and new hosts print its PHPSESSID value.
Same value or two different values? I'm unclear whether you are trying
to maintain a single session across multiple servers.

>IE: old host print its PHPSESSID value, and new host print empty array
>(no cookies sent?).

That's what it means, and this is likely your problem.
IE security settings are probably relevant here.

>> >I have read user notes php manual section session handling, but none
>> >of the solution works for me.
>> >Is it cookie problem?
>>
>> If you are constantly getting new sessions on every page hit, it's
>> usually a cookie problem, assuming you are not trying to use
>> trans_sid. You can't maintain the *SAME* session between servers
>> in two different domains (even if it's the same server).
>
>I've decided to leave this problem and use IP address since I have no
>idea to solve strange IE behaviour.
>
>Thank you very much.
>

 

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

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