Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fixed] Can't login in to admin panel. #916

Closed
casr opened this issue Nov 28, 2011 · 0 comments
Closed

[fixed] Can't login in to admin panel. #916

casr opened this issue Nov 28, 2011 · 0 comments

Comments

@casr
Copy link

casr commented Nov 28, 2011

I set up vhosts domains with a general pattern like "www-example.example.com". It would seem (after much frustration on my behalf :) that that the regex pattern for setting the cookie is slightly wrong. The dot after the www hasn't been escaped.

Replace symphony/lib/core/class.session.php at line 109:

                return preg_replace('/(^www.|:\d+$)/i', NULL, $_SERVER['HTTP_HOST']);

with:

                return preg_replace('/(^www\.|:\d+$)/i', NULL, $_SERVER['HTTP_HOST']);

Now the cookie is set on the right domain (at least for me).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants