Implemented support for 'cookie' sessions.