Is there a way when the session timeout occurs and the Restart link page appears in the browser when you click it to make it recall the "commandparm" used in the expired sessions URL?
e.g. https://mysite.com/myapp/?debug
When I click Restart, it loads https://mysite.com/myapp/