session on serveralias domains.

unknow

New member
Joined
Jul 26, 2008
Messages
3
Location
Milan, ITALY
session on domain pointers.

EDIT -----

if it can intereset to some user, I have found the solution to my problem:

put

php_value session.cookie_domain ".yourdomain.com"

in your .htaccess file on the root directory and so you can have the same $_SESSION in all of your subdomains and / or domain pointers.

i'm sorry but i've posted here beacause I thought about having to modify something of directadmin configurations.

sorry.

----- EDIT

hi to all.

I have added some domain pointers to the main domain for being able to catch up the content with various addresses, something like this:

mysite.com (main domain)
---
fr.mysite.com >> alias of >> mysite.com
it.mysite.com
en.mysite.com
pt.mysite.com

now, the question is: is it possible to configure php so that the $_SESSION's variable are maintained in the passage from an alias to another?

for example, what i've to do so that if i login at "en.mysite.com" and maintain it if i go to "fr.mysite.com" ?

some friend said to set

session.cookie_domain = .dominio.ext

on "php.ini" , but it does not run.

can anyone help me please?

thanks.
 
Last edited:
Back
Top