Skip to content

Avoid saving embedded options in session: Session exceeding size #335

@JohnAmican

Description

@JohnAmican

We're using AS on our Rails app for a pretty large admin backend. If our admins do enough stuff on certain pages then they get a cookie overflow.

I might know what's going on: those pages are using render :active_scaffold, constraints: {...}. The constraints are persisted in the session, and enough constraints are being added throughout their browsing session that it gets too big.

This seems to be a fundamental issue with how constraints are passed. I don't understand why they couldn't be passed once to the rendering of an AS component? That would solve the issue that I think this session approach was trying to solve (having pages work even if you visit them through back/forward buttons).

Or if there's something I'm misunderstanding please tell me.

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