You are here: Re: Sessions in different versions of PHP « All PHP « IT news, forums, messages
Re: Sessions in different versions of PHP

Posted by Mike on 02/27/07 14:16

On Feb 23, 9:20 pm, Rik <luiheidsgoe...@hotmail.com> wrote:
> Mike <m...@mjfcadsolutions.co.uk> wrote:
> > Rik <luiheidsgoe...@hotmail.com> wrote:
> >> Mike <m...@mjfcadsolutions.co.uk> wrote:
>
> >> > Both work fine until tested with a user on an AOL ISP. The one under
> >> > 4.4.3 works perfectly but the one under 5.0.4 fails and the session is
> >> > not carried accross to the new page.
>
> >> > Any one have any clues why this would happen. Whats the changes/
> >> > diferences between 4.4.3 and 5.0.4 that could effect this?
>
> >> No change between 4.4.3 & 5.0.4 that could do this I'd think.
> >> Offcourse, 2
> >> different severs mean 2 possibly different configurations. Compare the
> >> following settings:
> >> session.name
> >> session.cookie_lifetime
> >> session.cookie_path
> >> session.cookie_domain
> >> session.cookie_secure
> >> session.cookie_httponly
> >> session.use_cookies
> >> session.use_only_cookies
> >> session.referer_check
> >> session.use_trans_sid
> >> url_rewriter.tags
>
> > I've checked the differences above although a couple I couldn't find
> > like session.cookie_httponly and session.cookie_secure.
>
> > url_rewriter.tags is different thought...
>
> > Version 4.4.3 = a=href,area=href,frame=src,input=src,form=,fieldset=
> > Version 5.0.4 = a=href,area=href,frame=src,input=src,form=fakeentry
>
> > Would this make a difference and can it be changed with ini_set()?
>
> I wouldn't think so. Is there a difference in the headers? Try to compare
> headers_list() after the session_start() of the two.
> --
> Rik Wasmus- Hide quoted text -
>
> - Show quoted text -

Rik,

I can only use headers_list() on the php5 test as its not available
prior to version 5. Any way the output is as follows...

array(5) { [0]=> string(23) "X-Powered-By: PHP/5.0.4" [1]=> string(56)
"Set-Cookie: PHPSESSID=il8mnvi1hd9pdslbmkldium0r1; path=/" [2]=>
string(38) "Expires: Thu, 19 Nov 1981 08:52:00 GMT" [3]=> string(77)
"Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-
check=0" [4]=> string(16) "Pragma: no-cache" }

Any good?

Thanks

Mike

 

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

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