Add cookie based session support

Param string passed but never used