Fix missing variables in session cookie driver.

I'm confused that nobody noticed that until now.