Yes, that works just fine. But what about whenever user stays connected and doesn't leave browser.
Inspite of inactivity, he is able to browse through files after let's say 1 hour.
It could happen, that user forgets to close browser windows on a public accesed machine.