on open set key cookie lifetime to match session ID cookie lifetime

Cookie needs to be time + lifetime to coincide with session id cookie time.