Questions tagged [session-cookies]
Session cookies enable a server and a browser to establish an identified connection (through cookies) and communicate though it.
4,821
questions
0
votes
1
answer
16
views
JMeter script override session cookies for multiple login API
I am planning to conduct a load test on an application using JMeter. In this test, I intend to simulate the concurrent login of 100 users, using 2 Active Directory user accounts. This translates to 50 ...
1
vote
0
answers
33
views
Logout is not working in symfony 6.3 on prod server
I have a site on symfony 6.3. When I developed it locally on localhost in docker there was no problem. But as soon as I moved it to a purchased domain on the server, the problem appeared. The domain ...
1
vote
1
answer
44
views
How can I redirect users to different pages based on session in PHP?
im trying after put username and password redirect to other page named panel.php but after the put currect values in form destination page redirect me again to login form. my login code ->
<?php
...
0
votes
0
answers
18
views
NextAuth session is returning null when using custom OAuth Provider (Trackmania)
I am trying to implement OAuth using Trackmania as my custom provider. I am following the documentation as stated here. I am getting all the way to the end of the section where it states I should be ...
0
votes
0
answers
49
views
How to get values from cookies using angular?
I have a system on the Internet that enables me to add custom applications to it through a window within this system. When you enter this window, the user session hash will be sent to the URL of the ...
0
votes
1
answer
34
views
Razor handle session state timeout on post
I use session state with cookie in my razor web app
The doc said the session is restored in the server if the cookie has timed out
If a cookie is received for an expired session, a new session is ...
1
vote
1
answer
32
views
Express Session Cookie not set in Chrome in development mode
I have been fighting this issue for many hours now and I can't get it to work. I'm creating a react app (vite) and for the backend I'm using NodeJS with Express. I'm also using express-session in the ...
0
votes
0
answers
9
views
touch does not update session.cookie.expires using Sequelize Store
I've been struggling with this for a while. I have a server side that creates a session using express-session library. I'm using SequelizeStore to store session records in a local DB. Note, my ...
0
votes
0
answers
11
views
GA4 - Bigquery. Is it possible to have a the same combination of ga_session_id + user_pseudo_id within multiple devices/browsers?
So, basically I'm trying to count sessions as Google Documentation says the unique session identifier should be a combination of ga_session_id + user_pseudo_id.
But as I can see in the that it happens ...
0
votes
0
answers
21
views
How to store Power BI session data without Localstorage?
I am developing a custom Power BI visual. In my use case, the visual need to authenticate the users to a third party server with the Oauth2 protocol. When opening the report, every user should have a ...
0
votes
0
answers
12
views
express-session won't apply cookie setting
I use session with mongo store, but the problem is that cookie setting won't get change :
app.use(
session({
name: 'session',
store: store,
secret: process.env.SESSION_SECRET || '',
...
0
votes
1
answer
36
views
preg_match function is returning only false value
I am trying to match user entered words with the patterns stored in the $patterns array, but preg_match function is returning only false value.
<?php
$patterns = array(
"p1"=&...
0
votes
0
answers
18
views
Change session after succesfull logon to Azure AD with OAuth2
During Azure OAuth2 authentication we need to store the access_token to get a access_token. This session has to be shared between our host and https://login.microsoftonline.com/ (and no one else) so ...
0
votes
0
answers
16
views
I don't know how to send the session ID after login authentication
https://i.stack.imgur.com/h22L4.png
const express = require("express");
const session = require("express-session");
const MySQLStore = require("express-mysql-session")(...
1
vote
1
answer
25
views
How do I automatically sign a user in (create session and send cookie back) after they sign up using a Nest.js backend with Passport?
Logging in with passport is working just fine with @UseGuard(LocalAuthGuard) before my login route like so:
@UseGuards(LocalAuthGuard)
@Post('login')
async loginUser(@Request() req) {
return req....
0
votes
0
answers
23
views
Nuxt 3 Authorization
I am new to Nuxtjs, i come from a web application developed using Vuejs 3, using pure Client Side Rendering and i was testing Nuxt SSR functionality migrating my application. In my scenario, the web ...
0
votes
0
answers
9
views
Share browser sessions selenium
I’m currently looking for a method of transferring a session with all cookies to another pc, when I run my script and it gets where I want it to go is it possible to transfer that session to someone ...
1
vote
1
answer
36
views
AuthGuard Not Recognizing Session Cookie 'sessionId' in Angular App
I'm encountering an issue with my Angular application where the AuthGuard isn't recognizing a session cookie named 'sessionId' correctly. I have implemented user authentication, and the expected ...
0
votes
2
answers
65
views
Nuxt .js and Laravel API - CSRF token mismatch
I'm trying to make a login page using nuxt.js as Front-end and Laravel for the API.
But after I take the csrf token from sanctum-cookie, i can't use it because of "CSRF token mismatch." . ...
0
votes
0
answers
66
views
SPA client doesn't send a cookie when Spring Authorization Server logout url is requested
I make Spring Authorization Server for all API's in my organization. It is deployed on domain https://oauth.organization.com. The problem is that client SPA deployed on https://app1.organization.com ...
0
votes
0
answers
20
views
Extracting UTM parameters value from first party cookie
I have passed the landing page's utm parameters to a first party cookie (using Simo Ahava's Persist Campaign Data GTM Tag) so I can track data from GA4.
first party cookie name - __gtm_campaign_url
...
0
votes
1
answer
18
views
Session not being created even though Set-Cookie header is being sent
I have three services, namely be, fe and auth. All the three services are hosted on App Engine and I have load balancer in place to have them all on the same domain. On user login, I want a session to ...
1
vote
0
answers
31
views
MAEN app with passport.js not sending session cookie when secure is set to true
I am using passport.js to authenticate.
Cors: app.use(cors({ origin: ENV, credentials: true }));
Under ENV I have my fronted url.
Session and rest config:
app.set("trust proxy", 1);
app.use(...
0
votes
0
answers
26
views
Third party Cookie is not visible under browser's application/cookies
From domain "origin.a.com" , an ajax call is being made to a servlet on another domain "cms.b.com" to fetch some response and show on the page hosted on origin.a.com. For tracking ...
0
votes
0
answers
13
views
Custom SessionAuthentication logic not working in my Django REST Framework project
So, the problem is with my custom implementation of SessionAuthentication. I researched google and docs trying to find a way to implement a logic of authenticating Custom User by his telegram_id and ...
0
votes
1
answer
55
views
How to display an app with auth cookies inside an iframe in a secure way?
I have a ASP.NET web application running in IIS that handles the authentication session with cookies.
A customer wants to display this application inside an iframe of another application. However, ...
0
votes
0
answers
19
views
How to Enforce Set-Cookie Header for Sessions When Backend is on AWS and Frontend is on localhost?
I'm working on a web development project where my backend is hosted on AWS, and my frontend is running locally on http://127.0.0.1:5173. I'm having difficulty enforcing the Set-Cookie header for ...
0
votes
0
answers
15
views
How does express-session distinguish different clients? [duplicate]
I've started to add express-session to my express server app. I've managed to get persistent sessions, but now I've noticed that for different tabs and even different instances/windows of Chrome I'm ...
0
votes
0
answers
13
views
token from cookie not being sent. Google App Engine
const uri = MONGODB_URI;
const client = new MongoClient(MONGODB_URI, { useNewUrlParser: true, useUnifiedTopology: true });
const store = new MongoDBStore({
uri: uri,
collection: 'sessions',
...
0
votes
0
answers
31
views
Cookie not setting when redirecting between same proxy URLs
I have a scenario where we are using Okta for authentication and trying to use Apigee proxy in between to route our requests.
What is happening:
We start the front-end site
Request hits the back-end ...
0
votes
0
answers
34
views
How safe is cookie authentication/authorization in asp.net?
How safe is Cookie based Authentication/Authorization in ASP.NET C#? Take a look at the example below, don't worry about password hashing, is this a secure/semi-secure method, or sufficient enough to ...
0
votes
1
answer
27
views
With Flask Sessions, do I need to explicitly create/change/delete cookies?
I'm confused about cookies in relation to Flask sessions (hereinafter "sessions").
I do understand how sessions rely on client-side cookies.
My question is when we create/change/pop the ...
0
votes
0
answers
16
views
can't get the shared cookies from 1 node service to another node backend service using sessionstore
i'm currently developing:
(data distribution service) a backend service that can store and distribute data (product data, transaction data, etc);
(credential service) a backend service that handles ...
0
votes
0
answers
41
views
Blazor wasm authentication with cookies session
I have a blazor wasm project and the client in which I have set up a custom AuthenticationStateProvider, now each time a user visits razor pages and GetAuthenticationStateAsync gets called, I want it ...
0
votes
0
answers
12
views
Auth0 cookie is set with the auth0 url and not my domain. How do I fix it?
I know it's not due to my app code as I tested the app against someone else auth2 and it worked fine. The issue results in the cookie not being usable for my domain.
But for the life of me I cannot ...
0
votes
0
answers
17
views
How to handle data in session when session expires?
Let's say a account has a balance field, and we need to query and update this field frequently,
so for better performance, get balance from database and put it into session, so that I update/get the ...
0
votes
1
answer
64
views
Sessions with AddMicrosoftIdentityWebApp() Method
I'm trying to understand something here. Currently I have implemented a web app that would take a single sign in using Azure AD and authenticating the user to whatever in AAD using the code below.
...
1
vote
0
answers
12
views
sessions are getting undefined after page refresh or when requesting other routes
I am trying to make user authentication with session in express.for session database I used Mysql but problem is that when trying to access session again in another route or after page refresh ...
0
votes
2
answers
32
views
I am trying to implement Sessions in controller of my ASP.NET Core MVC web application but it says "Session" doesnot exist in the current context
Error: CS0103: The name Session does not exist in the current context
I want to use sessions in my web application to check if user is logged in.
Here is the controller:
controller
I have also added ...
0
votes
0
answers
13
views
cookie does not work in file based browsering
I use vs2019 on win10 to develop my webapi application.
In order to debug my java-script code, I would like open
a separate chrome page and open an independent page of
"d:/dir/dir/index.html"...
1
vote
0
answers
125
views
Questions regarding react in django or react as standalone
I am creating an website using react and Django. To combine Django and react there are 2 ways
React in its own “frontend” Django app: load a single HTML template
and let React manage the frontend (...
0
votes
0
answers
18
views
How can I create a permanent user session in my app?
I'm making an app using FlutterFlow. Before the user gets to the main page of the app I need him or her to enter in his or her email address. Basically that's the only info I need for "signup&...
0
votes
1
answer
36
views
How to keep django web session active in react-native-webview?
Based on this answer I tried to retain my session in IOS and even though I am passing the cookies back with the request, I am still coming back when I exit and re-open the app, the difference from ...
0
votes
1
answer
167
views
how to GET a specific cookie value in Angular 14
"I'm using the ngx-cookie-service library in my Angular application, but I'm getting two different cookies on every login as already the session id has been SET in the backend, to GET the correct ...
0
votes
1
answer
32
views
Server-side store for a shopping cart in JAVA with Cookies or Sessions difference
I'm trying to figure out the difference between usage of Sessions and Cookies in a particular use case.
I'm building java difference service with server side items storage.
I see generally everybody ...
1
vote
1
answer
31
views
From client code in a browser, Is there a way to keep certain data only for a single browser session? (lifetime same as session cookie)
Currently I'm keeping the client's token in the HttpOnly cookie but I'm thinking about using Authorization header instead of cookie to provide certificate to the server. because some architecture ...
0
votes
1
answer
69
views
How to Exclude cookies from being cached on AWS CDN?
I have recently configured my Laravel website on AWS CDN and have encountered some issues. I am quite new here, kindly help..
My Laravel Website uses below cookies to identify the session.
...
0
votes
1
answer
104
views
Sveltekit Session Cookie Read / Write
I am working on an app powered by Sveltekit that provides login sessions.
When the user successfully logs in, I redirect them to their user page as follows:
cookies.set('session', token, {
path: '/...
1
vote
2
answers
90
views
Secure cookies and TLS termination in Azure Application Gateway
A requirement for my application is that its cookies are served over HTTPS only (Secure attribute). It is also to be hosted behind Azure Application Gateway with TLS termination configured: the client-...
0
votes
0
answers
38
views
Express sessions does not persist across requests and set cookie in browser - in production (client and server hosted on separate urls)
I am working on an e-commerce application using React (Vite) on the frontend, Node, MySQL, Sequelize, and Express with express-sessions and sequelize session store. While everything works locally, in ...