Restrict credentials
<p>Is there any Java library which can handle:</p>

<p>1) User login into browser. Opens new browser and tries to access application. Then instead of showing him login page get credentials from first tab and take him directly to home page.</p>

<p>2) User login into one browser (may be Firefox). Tries to access application in another browser. Alert him that application is already running in another browser</p>

<p>3) User login in one machine. If he tries to login into application with same credentials alert him that someone is already login with same credentials.</p>

<p>4) Kill user session when window / current tab is closed.</p>
