title: Self.request.cookies.get is not returning complete value of the cookie in google app engine
body: <p>I am setting the cookie value to (id, hash_of_id), but when the code is reading the value of the cookie it is getting only the part before comma. Not sure why:</p>
  
  <p>These are the codes:</p>
  
  <p>This is setting the values of the cookie named user_id.</p>
  
  <blockquote>
    <p>self.response.headers.add_header('Set-Cookie', 'user_id = %s; Path=/'
    % id_hash)</p>
  </blockquote>
  
  <p>The value of id_hash is coming from following:</p>
  
  <blockquote>
    <p>def make_hash(user_id): return hmac.new(SECRET,
    str(user_id)).hexdigest()</p>
    
    <p>def new_hash(user_id): id_hash = make_hash(user_id) return "%s,%s"
    %((user_id), id_hash)</p>
    
    <p>id_hash = new_hash(user.key().id())</p>
  </blockquote>
  
  <p>When I am checking the value of the cookie in the browser using Edit this Cookie extension, it shows something like this: </p>
  
  <p><a href="https://i.stack.imgur.com/y5wmK.png" rel="nofollow noreferrer">This shows cookie has got id and hashed value of id.</a></p>
  
  <p>Now value of cookie is being read:</p>
  
  <blockquote>
    <p>cookiess = self.request.cookies.get('user_id')</p>
  </blockquote>
  
  <p>When I am displaying the value of variable cookiess using</p>
  
  <blockquote>
    <p>self.render("welcome.html", username = cookiess)</p>
  </blockquote>
  
  <p>It shows only the part before comma, </p>
  
  <p><a href="https://i.stack.imgur.com/Ixd9j.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>I am not able to understand why the self.request.cookie.get returns value only till comma and not complete value.</p>