C
C#3mo ago
alex

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
Pastebin
using Microsoft.AspNetCore.Builder;using Microsoft.AspNetCore.Hosti...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
0 Replies
No replies yetBe the first to reply to this messageJoin