Skip to content

Flash messages are not deleted after read #265

@vcraescu

Description

@vcraescu

What version of aah are you using (aah --version)?

aah v0.12.2
cli v0.13.4
go v1.13.7

Does this issue reproduce with the latest release?

Yes.

What operating system are you using (such as macOS, Linux and Windows)?

macOS, Linux

What did you do?

In controller:

c.Session().SetFlash("error", "Some error message")

In view:

{{ flash . "error" }}

What did you expect to see?

I expect to get the flash message only once but when I refresh the page the flash message is still present in the session.

What did you see instead?

The flash message should be removed from the session if it is read once. It is removed from memory but it is not removed from file session.

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