문제

I am using zencart, I want to share session among deferent sub domains. For example:

www.persun.com
fr.persun.com
de.persun.com
au.persun.com

they are using the same site files. how to share same session among them

도움이 되었습니까?

해결책

do this, in order of preference

in php.ini:

session.cookie_domain = ".persun.com"

or in .htaccess:

php_value session.cookie_domain .persun.com

or in script file(s):

ini_set('session.cookie_domain', '.persun.com' );
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top