session cookie properly sent when needed. fixed a copy pasted induced bug