session and subdomain

Hi all,

I encounter the following problem:

A session (admin), set on mydomain.com is keeped when i go to
"s1.mydomain.com", and vise versa.



( linux gentoo). Can i solve the problem with a different apache
configuration?

thx.
severin [ Mo, 30 Juli 2007 11:48 ] [ ID #1782087 ]

Re: session and subdomain

On Jul 30, 5:48 am, S=E9verin Richard <severin.rich... [at] free.fr> wrote:
> Hi all,
>
> I encounter the following problem:
>
> A session (admin), set on mydomain.com is keeped when i go to
> "s1.mydomain.com", and vise versa.
>
> ( linux gentoo). Can i solve the problem with a different apache
> configuration?
>
> thx.

You want to change session.cookie_path:

<http://www.php.net/manual/en/ref.session.php#ini.session.cookie-
domain>
zeldorblat [ Mo, 30 Juli 2007 15:16 ] [ ID #1782089 ]

Re: session and subdomain

On Jul 30, 5:48 am, S=E9verin Richard <severin.rich... [at] free.fr> wrote:
> Hi all,
>
> I encounter the following problem:
>
> A session (admin), set on mydomain.com is keeped when i go to
> "s1.mydomain.com", and vise versa.
>
> ( linux gentoo). Can i solve the problem with a different apache
> configuration?
>
> thx.

You want session.cookie_domain:

<http://www.php.net/manual/en/ref.session.php#ini.session.cookie-
domain>
zeldorblat [ Mo, 30 Juli 2007 15:16 ] [ ID #1782090 ]
PHP » alt.php » session and subdomain

Vorheriges Thema: Parse arrays.
Nächstes Thema: Fileinfo inconsistent, returning wrong MIME type