Session and url problem |
[eluser]Sara rad[/eluser]
hi everyone :x i used session library for my login page . when user logined from site.com in www.site.com script can't detect sessions . i change base url from site.com to www.site.com and now session in site.com dont worked ) any help !? regard
[eluser]WanWizard[/eluser]
set the cookie_domain in your config.php to '.site.com', to make the cookie valid for all sites in that domain.
[eluser]toopay[/eluser]
As i say in [url:http://ellislab.com/forums/viewthread/185815/]this thread[/url], i believe there are something wrong with your php environment. Can you print out your php environment? Do this way : 1. Create a view file, and controller to display it, then write this in your view file Code: <?php phpinfo(); ?> 2.Access that controller, and save your php information in a file, and upload it somewhere, and post your file url here.
[eluser]Sara rad[/eluser]
hi again :x this is my php info http://darkgame.persiangig.com/other/php.htm Regards
[eluser]swiftrui[/eluser]
restore CI default value to test it,it should be ok. $config['cookie_prefix'] = ''; $config['cookie_domain'] = ''; $config['cookie_path'] = '/';
[eluser]InsiteFX[/eluser]
You need to create an htaccess file to map site.com to www.site.com InsiteFX |
Welcome Guest, Not a member yet? Register Sign In |