Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- XMLHttpRequest Should Run Javascript


inveni0 - 2:53 pm on Apr 12, 2011 (gmt 0)


@Demaestro

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.


Thread source:: http://www.webmasterworld.com/javascript/4296148.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com