Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
3 answers
54 views

ASP.NET Core 6.0 MVC : get session and cookies in view

Browser>Application>Cookies I am attempting to create session and cookies in a ASP.NET Core 6 MVC project. When I debug the project locally on my PC, the session and cookies are working as ...
Lamont Chean's user avatar
-1 votes
0 answers
21 views

How to Properly Use Cookies for Authentication in a Web Application?

I'm working on a web application and need guidance on using cookies for authentication. Note: I am a student so I might be missing some obvious points so please point them out if there are any. I ...
Aditya's user avatar
  • 29
0 votes
0 answers
14 views

Ktor HttpResponse setCookies() only returns one cookie even though others are also available

Im currently trying to authenticate with an api, and need to get some set cookies. In inspect element I can see the set-cookies that I need as attached: However my code only returns the cookie ...
lvm12's user avatar
  • 33
0 votes
0 answers
13 views

Adding multiple cookies for the ASP.NET Identity

I have a use case in which I need to use two /login and /logout endpoints depending on the authorization request, each will perform specific tasks. I'm using ASP.NET Identity: builder.Services....
mshwf's user avatar
  • 7,339
0 votes
0 answers
47 views

Update Claims from Another Application, Update Cookie Claims

The following are 2 endpoints in my controller, goal here is to pass a list of roles, and add them to the current cookie authenticated user as claims. It is worth noting this API uses both ...
Wolfenstyne's user avatar
0 votes
0 answers
29 views

Spring Boot JSESSIONID cookie is sent even when request is not authorized and returned 403

I'm using Spring Boot version 3.2.1 and have encountered an issue with JSESSIONID cookies. When I make a request that requires authentication, I receive an invalid JSESSIONID cookie. However, a valid ...
Petr Jelínek's user avatar
1 vote
1 answer
30 views

About Auth systems and workflow

like when i made any auth system , user registers and then logins , then a cookie is generated , now like to have the user state stored across the app , i use redux , and also on refreshing the state ...
Gurkirat Singh's user avatar
0 votes
0 answers
32 views

Why should I divide token into two things, accessToken and refreshToken?

These days, I'm making login process. I made up my mind to use jwtToken. Here's the thing. I made two token, accessToken and refreshToken. but my coworker said that "why you made two tokens. you ...
Aiden's user avatar
  • 21
0 votes
0 answers
54 views

Safari is limiting the expiration of authentication cookie to 7 days

Safari is limiting my auth cookie to 7 days. This is weird since: Should be a first party cookie (Cookie has Domain=.mydomain.com, my SPA hosted on app.mydomain.com and the API that serves the cookie ...
Alfonso Embid-Desmet's user avatar
0 votes
0 answers
47 views

Blazor .net8 Server Interactive Mode authentication "autologin" with cookies

I know my code is not great but here I am. because I want to improve. So, it's my first Blazor application. I use Blazor server with Interactive Mode ON in .NET8. I try to implement an authentication ...
jérémy Courbat's user avatar
0 votes
0 answers
16 views

Next.js cookie problem in getServerSideProps

I have this function in my next.js app : const getTokenFromCookie = (req) => { const parseCookies = (cookieString) => { if (!cookieString) { return {}; } return Object....
dragan belegic's user avatar
0 votes
0 answers
17 views

Retrieving cookie in service (API functions) folder in NextJS 14

I am using NextJS I have been struggled with this problem for quite some time. Essentially, I want to sepearte logic and UI in my project. I want to only paste in the necessary parameters (e.g. ...
Huy Nguyen Quang's user avatar
0 votes
0 answers
30 views

SessionID lost when I refresh the page

I’ve developed an e-commerce website with Django REST Framework (DRF) as the backend and React as the frontend. Everything was functioning perfectly in my local environment. However, after deploying ...
Oula R.'s user avatar
  • 35
1 vote
0 answers
57 views

Endpoint with authorize attribute returns 200 and 401 code in turn

I did the cookie based authentication in my ASP.NET Core project and here is code: Configuration ... builder.Services.AddSingleton<IAuthorizationHandler, SessionHandler>(); builder.Services....
Danil Zhilcov's user avatar
0 votes
1 answer
40 views

How to signup in reactjs by storing JWT token in the cookies such that whenever a user signs in then he/she is automatically logged in?

I am developing a chat app using MERN stack. I have stored jwt token in the cookies in the backend part to signup and login and it is working correctly. Whenever a user signs up then he is ...
Siraj Saifi's user avatar

15 30 50 per page
1
2 3 4 5
130