Skip to content

No way to get same_site out #2

@jamesarosen

Description

@jamesarosen

Rack::Session::Abstract::Persisted deletes the :same_site option and saves it off as an instance variable, then applies it with optional call support.

If I have an instance of Rack::Session::Abstract::Persisted, I can't get the same_site value out of it.

My use-case: I'm migrating from one type of session cookie to another and I want to copy all the directives, but same_site is always nil. I'm left having to do other.instance_variable_get(:same_site), which is an bug waiting to happen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions