Is there a way to identify The page you submitted was invalid for your session errors in visualforce page or controller?
I currently have an error handler page, which will notify users to try again when an exception has occurred (a friendly message). But users get the same message even when session has expired, so would like to handle such exceptions separately - will notify users about session expiry instead of the standard message.