Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    is a bug : Session store not set on request ??

    Bug Report
    2
    2
    1396
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y
      yavish last edited by

      when call api

      http://example.com/api/v1/customer/login?token=true

      i get error message :
      Session store not set on request

      fixed:
      adding only the following 2 middleware allowed me to access session data in my API routes:

      \App\Http\Middleware\EncryptCookies::class
      \Illuminate\Session\Middleware\StartSession::class
      Whole declaration ($middlewareGroups in Kernel.php):

      'api' => [
      \App\Http\Middleware\EncryptCookies::class,
      \Illuminate\Session\Middleware\StartSession::class,
      'throttle:60,1',
      'bindings',
      ],

      1 Reply Last reply Reply Quote 0
      • A
        Amitk-Webkul last edited by Amitk-Webkul

        Hi there,

        We are using Sanctum for Bagisto API and our kernel.php middleware group is this-

        screenshot_from_2023_05_03_11_56_50.png

        1 Reply Last reply Reply Quote 0
        • First post
          Last post