fix a bug in session cleanup

git-svn-id: https://svn.sinaapp.com/testdrape/1@146 3aab84ea-45f4-4ca6-9053-3a61a15e3b4a