This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » General discussion » symfony session problem with doamin name
symfony session problem with doamin name [message #97234] Tue, 13 April 2010 08:11 Go to next message
shreelakshmi  is currently offline 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 Go to previous messageGo to next message
halfer  is currently offline 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 Go to previous message
shreelakshmi  is currently offline shreelakshmi
Messages: 2
Registered: April 2010
Junior Member
yes i made the same thing.. it worked out... thank you..
Previous Topic:Newbie: Form validator
Next Topic:newbie-correct intersal server error
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software