Added option for using kohana session