Add method session_nil
Merge remote-tracking branch 'pb/master'

merge reset and session_nil