Session across www and apps - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Session across www and apps (/showthread.php?tid=41674) |
Session across www and apps - El Forum - 05-13-2011 [eluser]R_Nelson[/eluser] i have www.mysite.com and apps.mysite.com how do i get the session on the apps.mysite.com is there something i have to set in both CI's or in one or something? Session across www and apps - El Forum - 05-14-2011 [eluser]toopay[/eluser] Is that same app or different app? For sub-domain session/cookies abilities, you may want to set Code: config['cookie_domain'] = ".mysite.com"; Session across www and apps - El Forum - 05-14-2011 [eluser]InsiteFX[/eluser] Also you will need to use the database sesions for persistence. InsiteFX Session across www and apps - El Forum - 05-14-2011 [eluser]R_Nelson[/eluser] no i made a fresh install of CI for apps and i do use the DB i'll make sure both sites have the cookie domain set and see what happens! Session across www and apps - El Forum - 05-14-2011 [eluser]ClaudioX[/eluser] How works the "cookie domain"? |