symfony session problem with doamin name [message #97234] |
Tue, 13 April 2010 08:11  |
shreelakshmi Messages: 2 Registered: April 2010 |
Junior Member |
|
|
Hi some one please help me...
Actually i have a domain name http://www.example.com, if i logged in to this domain and in another tab if i type simply http://example.com then logged session wont be displayed in the http://example.com. I am using symfony 1.2 version.
example, if you are logged in on http://www.example.com, you will NOT be logged in on just http://example.com.
For this i added session_cookie_domain: .example.com at factories.yml
and i added session_set_cookie_params($lifetime, $path, '.example.com', $secure, $httpOnly); at sfSessionStorage.class.php also...
But still above things are does not working, and i cleared all cache and log files each time...
Please some one help me soon......
|
|
|
Re: symfony session problem with doamin name [message #97258 is a reply to message #97234 ] |
Tue, 13 April 2010 12:09   |
halfer Messages: 9535 Registered: January 2006 Location: West Midlands, UK |
Faithful Member |
|
|
The easiest way to deal with this is to add a mod_rewrite rule into your virtual host container, or your .htaccess file, to redirect one domain to the other. So, users who access example.com will be taken to the "www" alias immediately, and they cannot log in to example.com separately.
Remember Palestine
|
|
|
Re: symfony session problem with doamin name [message #97272 is a reply to message #97258 ] |
Tue, 13 April 2010 15:07  |
shreelakshmi Messages: 2 Registered: April 2010 |
Junior Member |
|
|
yes i made the same thing.. it worked out... thank you..
|
|
|