RE: Re: Session_id(); are changing between the pages.

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

 



Christoph M. Becker,

I checked the browser (Set-Cookie) Cookie transferred to the browser but not
sending back to the server.

Also I enabled error_reporting ON, I'm getting this error at page4 after the
user click (click me) at page3 (Notice: Undefined index: username in
/var/www/html/phptest/test4.php on line 6) 


hadi wrote:

> session_id(); not passing the same id number to the second page in 
> result session file are created empty. Browser like IE and Chrome are 
> not able to pick up session variable.

You should have a look at the HTTP headers, and check whether the cookies
are transferred to the browser (Set-Cookie) and whether they are transferred
back to the server (Cookie).

If the cookies are not transferred to the browser, have a look at your error
logs (assuming you have set error_reporting to an appropriate value, what
you should have on your developement machine anyway).  There may be
something like "cannot sent headers; headers already sent".

--
Christoph M. Becker


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

<<attachment: smime.p7s>>


[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