session reset onBeforeAction fixed