Resolved null request when using setSession()