Update client.py

Add tighter security messures to the cookie