How to prevent websites from log you out due to inactivity using add-ons

I am working with 5 different websites which have short session life, they log out in 10 - 15 mins of inactivity. I came up with a browser extension to do the job for me. and what I did so far:

  1. reloading the page.
  2. open another tab from the same host and close it automatically.
  3. switch tabs to be active automatically ( like every 2 minutes one of these websites becomes active).

those seem to be NOT working, but they had very bad user experience.

also, reloading the page might cause losses of the work that I am doing.

I tried to make some requests on the background but these websites use a lot of headers and cookies which seems to be very hard to figure out how to use them.

I used the webRequest API to grab every request with its headers, also I got every cookie and every element on the localStorage but I don’t know how to connect all of these pieces together .

is there a better way to stop logging off due to inactivity?

I really don’t know which stack these websites are using but it seems that they have high security standards.

1 Like