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

Rails.application.config.action_dispatch.cookies_serializer = :hybrid # :json
```

Use `:hybrid` which migrates old sessions from Marshal format to JSON
user
```ruby
# Be sure to restart your server when you modify this file.

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