Skip to content

Session is empty when mount/3 is called the second time #21

@nileshtrivedi

Description

@nileshtrivedi

I ran into this when trying to create a simple token-based auth for the liveview.

This might be fixable by a custom endpoint which passes @session_options to the socket "/live", Phoenix.LiveView.Socket call. But it would be nice to have sessions working in liveview as expected in PhoenixPlayground.Endpoint which is missing this option.

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