closes #1164: Session lost

- added prototype-snippet.js
Merge pull request #1165 from GhiGt/session-lost

Closes #1164: Session lost