-
-
Notifications
You must be signed in to change notification settings - Fork 984
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Cookieless Session #543
Comments
You could just call the |
can you give me an example for that? How I'm supposed to do that? |
So when you create the store object using your chosen store module, that module has various methods to interact with it like |
@dougwilson , when another user requests login using API, the first session stored in database is getting updated. So I'm losing session of previous user who was logged in using API. I'm unable to insert new session for each login request. I can write custom code to achieve that but it worths to ask you if this library consists some logic to operate on such kind of scenario? |
Hm, I've never seen that happen here. It would be a big bug for sure. Can you help me reproduce the issue? I can take a look. Please provide all the following:
Thanks! |
Node :- v9.2.1 Code is on my localhost so I can't show you but I can explain you the process -
app.use(session({
This library seems to work fine with browser login but not working with API logins. Hope now you've understood the problem. |
I kinda follow, but not sure why that is happening in your code. I would love to attach a debugger and walk though it and see what is going on, if you're willing to provide the requested information. If not, I'm not sure how I can figure out what is happening. |
gateway.zip |
Awesome, thanks! I just got to bed, so will check it out when off work tomorrow night (approx in 20 hours). |
(I also have the issue open and labeled in case someone else has time to look sooner) |
@dougwilson thanks for your help. |
Hi @dougwilson, any update? |
I haven't had an opportunity yet. I have the issue open and labeled in case someone else has time to look sooner. |
It's been a while! What happened? |
@npshubh I am able to understand the problem,I wanted you to clarify the following
|
Regarding the problem of not being able to store more than one user in the session database. I had a similar problem during testing. It was a mix of misconfigured authentication and me repeatedly sending the same cookie through postman over and over again which bypassed the signin route. 😔 I'm still interested in a solution regarding sessions without cookies. My use case is using session based auth on a react native expo frontend which doesn't support cookies.
|
I created an ugly and temporary solution. In express-sessions/index.js, in the session function i add the option
This seems to work, but i really have no idea if it breaks some other part of the code. If there are no other alternatives for creating cookieless sessions i hope someone could integrate a similar solution into the project. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This is the same as #161 right? |
How can we implement cookie-less session in express js? Express-session provides a way to maintain session using cookies but what if we try to use express-session without cookies? Is there any way to achieve that?
The text was updated successfully, but these errors were encountered: