Reply to Re: Session ID changed everytime go to new page or reload.

Your name:

Reply:


Posted by Bocah Sableng on 04/10/07 02:01

On Apr 10, 5:51 am, gordonb.7i...@burditt.org (Gordon Burditt) wrote:
>
> What is the domain name of the new host and the old one?

My old domain is sinau.dev, and the new one is op_pusat.dev. (I
use .dev for development)

> If they
> are in different domains, the browser won't send cookies (including
> the session cookie) from one domain to another.
> Do you have cross-links between virtual hosts?

I don't understand the meaning of 'cross-link'

> It looks like you are using
> host-only cookies (session.cookie_domain unset), so cookies won't
> be passed by the browser between hosts.
>

Reading your post, I found another clue. I try to check cookies.
Tested using FF 1.5, the problem disappear (session id remains
unchanged).
Using IE6, session id always changed, even if the domain is in trusted
sites list.

I try to get cookie info by executing
print_r(session_get_cookie_params()). Both old and new domain have the
same value:
Array
(
[lifetime] => 0
[path] => /
[domain] =>
[secure] =>
[httponly] =>
)

I have read user notes php manual section session handling, but none
of the solution works for me.
Is it cookie problem?

[Back to original 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

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