inveni0 - 2:53 pm on Apr 12, 2011 (gmt 0)
Yes, but that seems a little server-heavy. My current solution works by placing something like this:
<!-- REDIRECT -->
into the login page. Then, my XMLHttpRequest function attempts to split the result at the word "REDIRECT". If the result is an array with more than a single index, the XMLHttpRequest function handles redirecting to the logout page (where all session variables are reset...just in case of stragglers).
Not perfect, but will work only when required.