check added to avoid session creation for static resources