• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

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

Cart as a guest user ( API )

Bug Report
2
4
616
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.
  • A
    abo last edited by 26 Sept 2021, 15:55

    How can i use cart using API while session not working with API how can i save the session to complete my action or how can i generate a temporary token for guest so he can use the application as logged in user

    1 Reply Last reply Reply Quote 0
    • devansh-webkul
      devansh-webkul last edited by 27 Sept 2021, 05:26

      Currently, you need to use the cookies for the guest portion. As we have not provided tokens for the guest.

      Laravel will detect the session from the cookies.

      1 Reply Last reply Reply Quote 0
      • A
        abo last edited by 27 Sept 2021, 09:22

        @devansh-webkul said in Cart as a guest user ( API ):

        Thanks for your reply.
        how can I send the cookies from the postman?
        06e391f2-0d02-421a-b5d4-d4ed9c1c5738-image.png

        what is the bagisto_session?

        1 Reply Last reply Reply Quote 0
        • devansh-webkul
          devansh-webkul last edited by 27 Sept 2021, 13:39

          In postman, these cookies are sent automatically but when you do in code you need to store and send it with each request.

          1 Reply Last reply Reply Quote 0
          4 out of 4
          • First post
            4/4
            Last post