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

login happens with wrong user #60

Open
christophfroehlich opened this issue May 11, 2019 · 3 comments
Open

login happens with wrong user #60

christophfroehlich opened this issue May 11, 2019 · 3 comments

Comments

@christophfroehlich
Copy link

Frequently it happens that after the successful login of user B he is logged in as user A, which was already logged in before. If this happens, there is no entry in the event log of user B after the login.

I've got no clue if this is related to server-side settings or partdb-related?

0.6.0-dev, partdb recognizes php 7.1.25, .htaccess is not configured.

@jbtronics
Copy link
Member

This could be possible related to Part-DB. The id of the user that is currently is logged in is saved in the $SESSION var of PHP. This value should be deleted, if the user logs out. But if there is a problem doing that, this value could be used again in during the login process.

I will investigate that in the code.

Is there any way to provoke that behavior or is it completly random?

@christophfroehlich
Copy link
Author

We encountered that several times if two users wants to work with part-db:

  • user A logs in
  • user A is working somewhere in part-db
  • user B logs in on a different PC while user A is still logged in and working
  • user B is logged in as user A in the interface instead of user B

@jbtronics
Copy link
Member

I have tried to reproduce that issue, and it was not possible for me (neither in 0.5.6 nor my 0.6-dev installation).
Are you sure that you have installed the current 0.6-dev Version from master? Maybe i have fixed that issue sometime ago, and you have an older version without the fix?

Are you using some modified php.ini file? Especially with changes on the session.* options? Maybe this is a php config related issue?

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