alex
alex
CC#
Created by alex on 3/28/2024 in #help
ASPNET Sessions
i have a aspnet backend and a react frontend. I'm trying to make a session when a request is made to any of the api endpoints which saves in cookies so that I can store data into that users session but I'm not having any luck doing this. Any help would be great I first learnt php so I'm basically trying to do the same thing as what PHP does when you use start_session or $_SESSION Startup.cs https://pastebin.com/qNqgAVAg Headers HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8 Date: Thu, 28 Mar 2024 01:35:32 GMT Server: Kestrel Access-Control-Allow-Credentials: true Access-Control-Allow-Origin: http://localhost:3000 Transfer-Encoding: chunked Vary: Origin
1 replies