added ability for permanent store of session and fixed a webhook bug