New _sessiondelete() method

This commit introduce new method: `_sessiondelete()` which abstracts sending delete request to session in the same way as previous `_session*()` methods do.
Also, the code in `_sessionpost()` was refactored.

With this commit we have a control layer over the requests and we can now modify the code more easily and introduce any necessary checks or formatting.