improve session handle

1、improve session handle