問題描述
域和子域之間的不同會話 (Different session between domain and subdomain)
I've deployed Oscommerce portal over domain.com and sub.domain.com, but I see when I login from domain.com, I was also loggedin from sub.domain.com itself because session is shared.
I want to separate the sessions of domain.com and sub.domain.com, both website should not be linked, one solution is that I change all the session variables of both side, but I want any easy solution in which I don't need to modify source code.
any help would be greatly appreciated.
Thanks
參考解法
方法 1:
I assume OsCommerce has Cookie settings in admin page. Make each site has unique Cookie name.
sample.com => sample_coookie sub.sample.com = > sub_cookie
etc...
(by MZH、user2322215)