# Client sent too short userid cookie

**URL:** <https://www.ruby-forum.com/t/client-sent-too-short-userid-cookie/243142>\
**Category:** NGINX\
**Created:** [August 25, 2015, 9:28pm UTC](https://www.ruby-forum.com/t/client-sent-too-short-userid-cookie/243142 "2015-08-25T21:28:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [August 25, 2015, 9:28pm UTC](https://www.ruby-forum.com/t/client-sent-too-short-userid-cookie/243142/1 "2015-08-25T21:28:23Z")

</div>

Hi

I’m getting a lot of “client sent too short userid cookie” errors in  
error.log. What I see is the following:

client sent too short userid cookie “odsp=;  
odsp=rB4An1Xcv3sLIBgDBjypAg==”

And, of course, the uid module resets the cookie (even though it can be  
recovered) and I end up not seeing same users. In other words, I have a  
$uid\_set variable, and no $uid\_got (but if I try to read cookie with  
Lua, I  
can successfully read odsp).

Is there a way to somehow prevent this or recover from this?

Posted at Nginx Forum:

> **[client sent too short userid cookie](https://forum.nginx.org/read.php?2,261242,261242#msg-261242)**
>
> Hi I'm getting a lot of "client sent too short userid cookie" errors in error.log. What I see is the following: client sent too short userid cookie "odsp=; odsp=rB4An1Xcv3sLIBgDBjypAg==" And, of course, the uid module resets the...
