简体   繁体   中英

Rails log cookie information if ActionDispatch::Cookies::CookieOverflow error

I am raising a ActionDispatch::Cookies::CookieOverflow error.

In theory I know why this is happening, my session data is over 4k.

However I dont know what in my session would make it over 4k.

The stack trace of the error is as follows:

raise CookieOverflow if options[:value].size > MAX_COOKIE_SIZE

Is it possible to override ActionPack and log options[:value]

Also it is not an option to store sessions in the database as the database would grow too fast.

Thanks

我最终分叉了ActionPack并对其进行了猴子修补,以提高cookie并出错

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM