Check Session timeout without extending it

Hello together!

I have the following problem: I am using my Neos Flow application with a login area across multiple browser tabs. I want that when the session is finished, that the tabs redirect themselves to the login side, so that the old content of the page is no longer visible if you forget to log out.

Now I want to send a request to the server via Ajax if the session is still valid - but without the session being extended by this request.

A simple “TimeOut” via JS does not work, as another tab can extend the session.

Does anyone have an idea regarding this problem? Thanks in advance for your help!

Many greetings,

Tobias

Hi @TobMei

i’m doung the same thing in a project :slight_smile: I’m using a middleware that checks if the session is still valid and returns a early response, before the Flow application is really started - which would extend the session :slight_smile:

I hope this idea helps you!

Link to slack (which can’t be indexed by search engines)

https://neos-project.slack.com/archives/C04V4C6B0/p1629802659068200

Dear Søren,

thank you very much for your prompt reply. Unfortunately, I have no access to slack. Could you please write me a code snippet per pm instead?

Again, that you very much for your kind support!

Best regards,

Tobias

I know, it’s a bad place to store things - but a great place to hide it :wink:

Joke aside, sign up here and join that part of the community as well :slight_smile:

https://slack.neos.io/