Questions tagged [session-cookies]

Session cookies enable a server and a browser to establish an identified connection (through cookies) and communicate though it.

Session cookies are temporary files that exist for a particular user for a pre-defined duration. Once this duration is expired, the session cookies are erased.

Session cookies allow a website to keep a state or memory of the visitor as they navigate between pages of the website.

4816 questions
6
votes
1 answer

Node.js, Angular, express-session: Chrome 80 does not save session because of cookie policy (sameSite cookies)

I have a Node.js, Angular app. (Node.js server written in TypeScript). Node.js Server is running on an Amazon EC-2 instance, the Angular client is on another server. For the login session, I use express-session. I am not using cookies in the app, so…
6
votes
2 answers

Multiple csrftoken cookies, is it a RFC requirement to only have 1 csrftoken?

I'm trying to find an answer to the following. Under what circumstances would the browser store multiple csrftoken cookies? Is it the correct, or technically valid functionality? And where in the RFC/security documentation passing an array, or…
jmunsch
  • 22,771
  • 11
  • 93
  • 114
6
votes
0 answers

Spring - Integration test - cant connect to secured Websocket

I have a Spring Boot 2.2 MVC application with Spring-Security / Session and Spring-Websocket. It's configured to only allow websocket connections when authenticated. Following is the recommended way to create a Websocket Client in unit testing.…
6
votes
1 answer

Android reading cookies

Hey, how can I read a value of a cookie? Example: String cs = CookieManager.getInstance().getCookie(); System.out.println("Cookies string: "+cs); This will give me a string which has to be parsed with split on ';' and '='. Is there a "cookie…
xpepermint
  • 35,055
  • 30
  • 109
  • 163
6
votes
3 answers

Facebook API SDK (PHP) clearing site sessions

I am successfully using the Facebook SDK (PHP) to connect users to my site, but I'm having issues when they authenticate their account. Their account is successfully authenticated, but for some reason my site's sessions are cleared. Flow: User logs…
user490152
6
votes
2 answers

nginx add_header Set-Cookie expires not working

I am trying to set up an nginx server that sets certain parameters in a cookie when hit on a certain location. I have the following configuration that puts the parameters in the cookie but the expiration does not work. This is my…
penguin
  • 61
  • 1
  • 1
  • 2
6
votes
1 answer

Cookie session is destroyed when an Android home screen PWA is killed

I have a PWA with session cookie based Authentication. I set a message for my cookie session for prevent cookies to be destroyed when I close my browser. Everything works fine except when I install my PWA in android home screen. If i log in from my…
Lasalle
  • 63
  • 7
6
votes
2 answers

Session cookie not being set on Edge (dot net core)

Session cookies are being set on Chrome, FireFox and even IE but not on Edge The browser version is Microsoft Edge 42.17134.1.0 DotNet core version is 2.1 and the following information is used in my startup.cs file public void…
6
votes
1 answer

Session cookie is not set in browser

I have frontend client running on custom Next.js server that is fetching data with apollo client. My backend is graphql-yoga with prisma utilizing express-session. I have problem with picking correct CORS settings for my client and backend so cookie…
6
votes
2 answers

Can you add a cookie to request with asp.net core middleware?

Am trying to write custom middleware in the ASP.net core pipeline, as part of my invoke, would like to append/add cookie, so then next middleware in the pipeline can access those cookie. getting compiling error on set the cookie value. Can anyone…
6
votes
0 answers

IOS not saving cookie from express cookie-session

This problem has been driving me mad. I am using React with Apollo (GraphQL) on the frontend and authenticating using passport.js and express cookie-session on the backend. Everything works perfectly from any browser (haven't tested safari) on a…
6
votes
1 answer

JMeter Login once and do an operation multiple times

I have a test plan such as: -Test Plan - Thread Group - Cookie Manager - Login - Play The login operation returns a session cookie which is required for play operation, for which I'm using Cookie Manager. Now, the login…
user5155835
  • 4,392
  • 4
  • 53
  • 97
6
votes
1 answer

Unable to read certain cookies

i am trying to read cookies from browser in order to setup an authguard. I am trying to check if cookies are setup then user is logged in otherwise not. For this purpose i am using ngx-cookie-service. Here is code for getting value from…
Shoaib Iqbal
  • 2,420
  • 4
  • 26
  • 51
6
votes
2 answers

How can I login to instagram using php and curl and get a sessionid?

I am using this PHP code found in the answer on this question : Instagram login programmatically When I check the cookie.txt sessionid is "" . is there a way I can change this code to make it get a sessionid cookie ? csrftoken,rur,mid,urlgen all…
Luke
  • 125
  • 1
  • 1
  • 5
6
votes
1 answer

Angular 5 - Cookie is set although (Set-Cookie) is in the response header

For an Angular 5 app, I have an auth service that does a HTTP POST which returns the session cookie (CORS) as shown below in the code below: signIn(signInRequest: SignInRequest): Observable { let headers: Headers = new Headers(); …
Hamza Adli
  • 61
  • 2