It wasn't debug... it was me. Broke session-id on the server side.