different session with url's with-www and without-www

后端 未结 5 672
猫巷女王i
猫巷女王i 2020-12-08 23:41

I have a interactive web site that has authors. When an author enters the site on www.mysite.com and logs in, the session varible becomes

$_SESSION[loggedid]         


        
5条回答
  •  误落风尘
    2020-12-08 23:51

    Set your session.cookie_path to the domain .yourdomainname.tld, note the starting dot (.).

提交回复
热议问题