How can I check from seam remoting and js, that if user's session is still active or expired?
Take a look at this article.