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

It causes session id to be different for every request #5

Closed
H0w4rd opened this issue Dec 11, 2020 · 5 comments
Closed

It causes session id to be different for every request #5

H0w4rd opened this issue Dec 11, 2020 · 5 comments

Comments

@H0w4rd
Copy link

H0w4rd commented Dec 11, 2020

I have a problem with this extension. It causes that I can't login to my web app. I was trying to figure it out, I discovered, that session id is different for every request, this extension somehow causes it, so the session is being forgotten after every request. When I comment out this extension in neon file, everything works as usual.
There are no PHP errors in any log folder. I use the latest stable Nette and PHP 7.4.
I don't know how to describe this problem more. I will try to explore your code and will get back at you if I discover something.
Otherwise it works, it sends messages to our Sentry.
But only causes described session mess.
Can you help me somehow? Can I provide more info?

@rootpd
Copy link
Owner

rootpd commented Dec 11, 2020

Hi. That's weird, we didn't encounter this kind of issue yet (and we do login to our app too).

The best would be to provide a repository or a couple of snippets with minimal application so I can replicate the issue if that's possible. Maybe start with https://github.com/nette/sandbox, add the extension, logic you use for logging in and see what happens?

@H0w4rd
Copy link
Author

H0w4rd commented Dec 11, 2020

It works in nette sandbox, hmm. There must be something in our app :(
Session id always changes upon login and I end up back on the login page.

@H0w4rd
Copy link
Author

H0w4rd commented Dec 11, 2020

I have just discovered that this line in our BasePresenter causes it
$this->user->getStorage()->setNamespace('Admin');
But I don't know why.

@H0w4rd
Copy link
Author

H0w4rd commented Apr 26, 2021

Please is it possible to do anything with it?

@rootpd
Copy link
Owner

rootpd commented May 26, 2021

Hopefully fixed via @martenb PR #7, tagged as version 1.3.1.

@rootpd rootpd closed this as completed May 26, 2021
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