destroy session when destroying the editor
Merge pull request #2087 from ajaxorg/destroy

destroy session when destroying the editor