```ruby
# Be sure to restart your server when you modify this file.

Rails.application.config.action_dispatch.cookies_serializer = :marshal
```

Replace cookie serializer format according to new rails version
user
```ruby
# Be sure to restart your server when you modify this file.

Rails.application.config.action_dispatch.cookies_serializer = :json
```
assistant