Actually this behavior was intended as a feature. When an user accidentally logged out, he could just log back in, and continue his work where he left it. So when a user logged in, after being logged out, he was not redirected to the homepage, but the form which was open when he logged out was restored instead.
However since this feature is rarely used as intended, and in fact confuses users, this feature is removed in 2.5.4.
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>