Changed session type to cookie