cookie session managment implemented

Signed-off-by: celynch <celynch@gmail.com>