fix _check_session_validity() and memory leak
fix _check_session_validity() and memory leak

thinkopensolutions/tkobr-addons,thinkopensolutions/tkobr-addons,thinkopensolutions/tkobr-addons,thinkopensolutions/tkobr-addons