Hello,
I have a weird situation and hopefully someone can provide me with a solution.
My application has independent login pages for the user depending to the company_id. After the user logs in, this company_id is set in the user session. When the session auto expires, he is to be redirected to the login page.
What this should do is reload the page with the correct url if it is left idle for the session lifetime. It gets around loss of the session because the code is inserted into the page head when the page was loaded, not when it expired.