|
Posted by Gordon Burditt on 04/10/07 04:12
>> 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)
Then the domains are different.
>> 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'
Domain A contains links to pages in Domain B, and vice versa.
>> 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] =>
>)
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 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).
Navigation:
[Reply to this message]
|