yeldiRium / st3k101

UNMAINTAINED.
2 stars 1 forks source link

Refresh session cookie lifetime somewhere outside api connectors #122

Open yeldiRium opened 5 years ago

yeldiRium commented 5 years ago

The dependency to the store from the fetchApi method was removed, so the api connectors can be used independently. Unfortunately this also means the removal of the action dispatch that updated the session cookie's expiry date.

This must somehow be set again. Best somewhere in the store.

Otherwise sessions will time out after some time (I think half an hour) on the client side, while still being active on the server.

This is actually a minor problem, since it only exists across page reloads. While the page is open, the session never expires on client side.

yeldiRium commented 5 years ago

Refresh session cookie lifetime somewhere outside api connectors