You are here: Re: Same session in a second and third level domain « PHP Language « IT news, forums, messages
Re: Same session in a second and third level domain

Posted by Giacomo on 12/11/06 00:28

Madkour ha scritto:
> HI Giacomo,
> Can you post the relevent part of your code?
> I'm not sure how you're using the "session.cookie_domain". Have you
> used it with the cookie set params / get params functions?
> You can also use the setcookie function. More information about it can
> be found on "http://nl3.php.net/setcookie". There is a point written
> about the exact issue you are discussing. It should be possible to use
> the same session cookie among sub-domains. According to the information
> in the above mentioned link, the absence of the '.' before the domain
> name can cause some inconsistencies.

Thanks a lot, I solved it with this code before session_start:

session_set_cookie_params(0 , '', '.mydomain.it');

Thanks again...=)

--
Giacomo

 

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

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