Temporary solution to this, is to alter the login.html page with the following code:
<script type="text/javascript" src="jquery-1.5.2.min.js"></script>
<script type="text/javascript" src="jquery.cookie.js"></script>
<script type="text/javascript">
if (jQuery.cookie('XASSESSIONID') != null) {
jQuery.cookie('XASSESSIONID', null);
location.reload(true);
}
else {
console.log('Already reloaded. [just debug status]');
}
</script>
Btw, interesting observation: The logic does not trigger when I use the following URL: http://localhost/ which results into something like http://localhost/#1300449398282_775
The logic however does trigger if I use a more explicit URL: http://localhost/index.html or http://localhost/login.html
It seems that this is still not working. When I close my browser, the Alternative Page's logic never gets triggered unless you do a hard refresh in your browser.
Once I log in, I'm just presented with my old (previous) page.
See a bug post I posted here: https://forum.mendix.com/questions/2027/Mendix-clientside-bug