No you have to logout to remove the encrypted private key from the session, if you want to make something for adding/removing/changing pin then that would be good too :)
Discussion
So you have to set the pin for every session right now? Or just once / stored in cookie?
Yea stored in the browser, but every time you open/refresh the page it will need to decrypt the key since its only kept in memory decrypted