Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bug - regarding sessions #975

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

Closed
kotsis opened this issue Jan 25, 2013 · 3 comments
Closed

Bug - regarding sessions #975

kotsis opened this issue Jan 25, 2013 · 3 comments

Comments

@kotsis
Copy link

kotsis commented Jan 25, 2013

I have been using FOSUserBundle with success until i followed the guide http://symfony.com/doc/current/cookbook/configuration/pdo_session_storage.html and changed my sessions from default file based to pdo sessions.

I have come upon a very strange bug. When i register to the site and i complete the registration i'm redirected to the url /register/check-email (i have confirmation enabled) which now throws the error:

friendsofsymfony/user-bundle/FOS/UserBundle/Controller/RegistrationController.php at line 75

The user with email "%s" does not exist

I have tried to debug the code at that spot and it seems that something is happening with the session. If i refresh the page then there is no error, the email is retrieved from the session successfully. Only the first time the session value returns an empty string "".

You could reproduce this error easily.

When i turn to file based sessions then registration succeeds with no error. When i turn to pdo sessions then it happens again.

I have considered posting this to symfony, but after hours of trying to reproduce the error with some session code i created from scratch (without using FOSUserBundle) i couldn't reproduce anything similar. So i suppose it has something to do with FOSUserBundle.

Thank you

@stof
Copy link
Member

stof commented Jan 25, 2013

This is a bug in symfony itself and is a duplicate of #921

@stof stof closed this as completed Jan 25, 2013
@kotsis
Copy link
Author

kotsis commented Jan 26, 2013

Ok, thank you for your response, since yesterday i have checked all bug reports that are similar. I have managed to reproduce this session error regardless of FOSUserBundle. I have submited it as a bug in symfony symfony/symfony#6886

Just wanted to let you know.
Cheers.

@stof
Copy link
Member

stof commented Jan 26, 2013

As said in the first comment on the other issue, it was already reported in symfony. I closed your issue as duplicate

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