Forum Moderators: coopster

Message Too Old, No Replies

Session on sub domain

Accessing session info from sub domain

         

xKillswitchx

8:24 pm on Jan 18, 2009 (gmt 0)

10+ Year Member



I am working on a CMS for a site I am developing, which will use a custom natively intergrated forum. I want to place my forum in forum.site.com.

In order to integrate, I need to include the core class which sets user information from session.

If the user logs in at site.com, will forum.site.com be able to access the same session information? Also, if the user logs in at forum.site.com, will site.com be able to access that session information?

If it is helpful, the hosting is a VPS from GoDaddy.com, linux using CentOS 5 ( I believe its 5 ).

g1smd

9:23 pm on Jan 18, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If you make the scope of the cookies cover the whole site, including subdomains then you will be able to access that information.

xKillswitchx

9:54 pm on Jan 18, 2009 (gmt 0)

10+ Year Member



That would be just setting the domain as .site.com then, correct? I haven't played much with cookies and don't even use them yet for the login. Will be adding them soon enough, it's kind of annoying to login every single visit.