Skip to content

Using Sentinel statelessly without starting session #548

@MirazMac

Description

@MirazMac

Your Environment

  • OS and Version: Windows 10
  • PHP Version: 7.4.2
  • Sentinel Version: ^4.0

Expected behaviour

I'm using sentinel via the Native Facade. My app is an API thus it doesn't start a session. And sentinel shouldn't start one as well for stateless authentications.

Actual behaviour

Whenever I call any method via the Native Facade, it automatically starts a PHP session. Since my app is stateless, I don't want to start a session. Even calling Sentinel::stateless(); starts a session.

Is there any way I can use Sentinel statelessly without PHP 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