I found that after user logon, the logon web part is disappeared. So I am using jQuery to monitor, say the web part id="logonminiform", I use code:
if ($("[id$='logonminiform']").length > 0) {
.....
}else
{
......
}
I found it always shows the else statement even I signed out. What method you use to tell if the user is logon?