candis icon indicating copy to clipboard operation
candis copied to clipboard

[FEATURE] Store the session ID or use cookies or JWT to prevent user logging out after refreshing.

Open promehul opened this issue 5 years ago • 5 comments

Describe the bug When I log in and refresh the page , user is logged out and we come back to the log in page.

Expected behavior User shouldn't be logged out

Additional context This is happening because we are no where saving the sessions id on the browser.

promehul avatar Mar 14 '19 11:03 promehul

@achillesrasquinha I dont know whether this is a feature intentionally implemented because of security reasons or is it really a bug ?

promehul avatar Mar 14 '19 11:03 promehul

We are using https://github.com/marcuswestin/store.js/ to store the credentials, username and tokenId in the browser, which gets erased after a refresh.

rupav avatar Mar 14 '19 14:03 rupav

So this is not a bug ,rather a feature na?

promehul avatar Mar 14 '19 15:03 promehul

Yes, not a bug, rather an implementation of store.js, which stores it in local storage if found. For persisting the token on a refresh, we have to check other options like cookies. I Don't think currently this feature is of high priority.

rupav avatar Mar 14 '19 15:03 rupav

Is this issue open? I could work on storing user credentials on browser cookies.

pranay-simejia avatar Jan 31 '21 17:01 pranay-simejia