JJBlaha Posted March 4, 2007 Share Posted March 4, 2007 I start a session in www.domain.com/folder and as long as I stay on www.domain.com everything works fine. I want to carry the session over to sub.domain.com, but this is not working. The .htaccess file contains the line php_value session.cookie_domain “.domain.com” In public_html, public_html/folder, and public_html/sub, but it will not work. Quote Link to comment https://forums.phpfreaks.com/topic/41146-sessions-and-subdomains/ Share on other sites More sharing options...
JJBlaha Posted March 4, 2007 Author Share Posted March 4, 2007 Anyone know what's wrong? Quote Link to comment https://forums.phpfreaks.com/topic/41146-sessions-and-subdomains/#findComment-199362 Share on other sites More sharing options...
Daniel0 Posted March 4, 2007 Share Posted March 4, 2007 Try to check your cookie path setting. Quote Link to comment https://forums.phpfreaks.com/topic/41146-sessions-and-subdomains/#findComment-199369 Share on other sites More sharing options...
JJBlaha Posted March 4, 2007 Author Share Posted March 4, 2007 My cookie path setting is / Quote Link to comment https://forums.phpfreaks.com/topic/41146-sessions-and-subdomains/#findComment-199371 Share on other sites More sharing options...
JJBlaha Posted March 5, 2007 Author Share Posted March 5, 2007 In addition including the line as I did in my first post makes the session fail to work in IE, but not firefox. Quote Link to comment https://forums.phpfreaks.com/topic/41146-sessions-and-subdomains/#findComment-199496 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.