# How can I avoid this warning?

**URL:** <https://www.ruby-forum.com/t/how-can-i-avoid-this-warning/207475>\
**Category:** Rails\
**Created:** [May 26, 2011, 1:28pm UTC](https://www.ruby-forum.com/t/how-can-i-avoid-this-warning/207475 "2011-05-26T13:28:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [May 26, 2011, 1:28pm UTC](https://www.ruby-forum.com/t/how-can-i-avoid-this-warning/207475/1 "2011-05-26T13:28:05Z")

</div>

Hi all,

Im using mongodb database in my rails 3 app.i tried to implement  
facebook and twitter login in my applications but i failed, one warning  
will occure.

The warning is, “ActionDispatch::Cookies::CookieOverflow”

Someone explain for this solutions: You need change your session\_store  
and don’t use the cookie\_store. You can use the active\_record\_store by  
example.

I cant understand this solution, How to solve this warning, can anyone  
explain…

```
  Thanks and Regards......
```

---

<div class="post-metadata">

**Author:** ![niyas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/a4c791/32.png) [@niyas](https://www.ruby-forum.com/u/niyas)\
**Post date:** [May 26, 2011, 2:13pm UTC](https://www.ruby-forum.com/t/how-can-i-avoid-this-warning/207475/2 "2011-05-26T14:13:53Z")

</div>

Hi Niyas ,  
Hope you’ve set the whole user record in a session,just set like this  
session[:current\_user]=@my\_user.id  
Regards,  
Loganathan.s

---

<div class="post-metadata">

**Author:** ![niyas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/a4c791/32.png) [@niyas](https://www.ruby-forum.com/u/niyas)\
**Post date:** [May 30, 2011, 3:00pm UTC](https://www.ruby-forum.com/t/how-can-i-avoid-this-warning/207475/3 "2011-05-30T15:00:56Z")

</div>

Loganathan S. wrote in post #1001192:

> Hi Niyas ,  
> Hope you’ve set the whole user record in a session,just set like this  
> session[:current\_user]=@my\_user.id

Hi Loganathan,

Thank you for your help 🙂

Im following your method, but i cant get solutions for this warning.  
same warning will occure…

Please explain…

---

<div class="post-metadata">

**Author:** ![niyas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/a4c791/32.png) [@niyas](https://www.ruby-forum.com/u/niyas)\
**Post date:** [May 26, 2011, 8:03pm UTC](https://www.ruby-forum.com/t/how-can-i-avoid-this-warning/207475/4 "2011-05-26T20:03:21Z")

</div>

Hi

[http://api.rubyonrails.org/classes/ActionDispatch/Cookies/CookieOverflow.html](http://api.rubyonrails.org/classes/ActionDispatch/Cookies/CookieOverflow.html)

The problem is you are probably storing a large amount of data in your  
cookies. possibly your session. So try looking at the data you are  
storing on your sessions. Try to limit the data being passed around from  
your browser to your server.
