CodeIgniter Forums
Why do sessions handle http://domain.com different from http://www.domain.com? - 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: Why do sessions handle http://domain.com different from http://www.domain.com? (/showthread.php?tid=3619)



Why do sessions handle http://domain.com different from http://www.domain.com? - El Forum - 10-13-2007

[eluser]dedavai[/eluser]
Does it have to do with CI or server configuration?


Why do sessions handle http://domain.com different from http://www.domain.com? - El Forum - 10-13-2007

[eluser]Michael Wales[/eluser]
Set the session domain in config.php as '.domain.com'

It will then use the same session across the entire domain.