Welcome Guest, Not a member yet? Register   Sign In
Session and url problem
#1

[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 Smile)

any help !?

regard
#2

[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.
#3

[eluser]Sara rad[/eluser]
Now i can't login into site , cookies can't set .
#4

[eluser]WanWizard[/eluser]
You did include the dot in front of the domain?
#5

[eluser]Sara rad[/eluser]
Yeah i Type : .site.com Sad
#6

[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.
#7

[eluser]Sara rad[/eluser]
hi again :x

this is my php info

http://darkgame.persiangig.com/other/php.htm

Regards
#8

[eluser]Sara rad[/eluser]
i need help !? Please , any idea ! Sad
#9

[eluser]swiftrui[/eluser]
restore CI default value to test it,it should be ok.

$config['cookie_prefix'] = '';
$config['cookie_domain'] = '';
$config['cookie_path'] = '/';
#10

[eluser]InsiteFX[/eluser]
You need to create an htaccess file to map site.com to www.site.com

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB