adding session_conroller for cookie sessions