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.
Merge pull request #4 from hardyjohnson/master

This seems to make sense at least with what I am seeing locally, sync the cookie expiration.