Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

How does Express/Passport detect when a session is manually deleted from MongoDB without calling sessionStore.get()?

I'm using express-session with connect-mongo as the session store in my Node.js server. I’ve added console logs to the session store methods to trace calls to .get(), .set(), .touch(), and .destroy() ...
Mukul bhardwaj's user avatar
0 votes
1 answer
31 views

How can I authenticate frontend requests to a custom API gateway using Appwrite sessions instead of JWTs?

I'm building a full-stack mobile application using Appwrite for authentication and backend services. The frontend communicates with a custom API gateway that proxies requests to various microservices. ...
yazandaoudd's user avatar
0 votes
2 answers
29 views

React + Express: Navbar not updating after login/logout without refresh

I'm building a web app with React (frontend on Netlify) and Express.js (backend on Vercel). Sessions are stored in PostgreSQL using express-session and connect-pg-simple. I check authentication status ...
ABDELILAH TAANO's user avatar
0 votes
0 answers
37 views

Is there any issue in storing session files in Public_html? [closed]

In a PHP membership website hosted in shared hosting, the session used to timeout in 30 minute after closing browser. We solve that problem by creating users.ini file and creating folder 'session' in ...
user28757434's user avatar
1 vote
0 answers
46 views

Azure AD - Code Verifier does not match the Code Challenge supplied

I'm trying to authenticate with Microsoft Azure AD OAUTH 2.0 in my Node.js/TypeScript app. During the repo cloning process, I keep getting this error when handling authentication: AADSTS50148: The ...
Jugert Mucoimaj's user avatar
0 votes
0 answers
24 views

PWA anonymous registration of users using a persistent storage

I am writing a PWA which is kind of a game but for a scientific experiment. My goal is that people will install the PWA on their device. I don't want to store personal information, I don't want to use ...
BFlat's user avatar
  • 186
2 votes
2 answers
28 views

When one script creates multiple XHRs to the same PHP file, are you creating multiple sessions or just one session?

Apologies if this seems like a repeat question but I'm having a different doubt now. Basically I have a PHP file that is set up like this: <?php session_start(); $_SESSION['globalVar'] = "...
Abb's user avatar
  • 71
0 votes
1 answer
36 views

tomcat is killing session that remain idle in around 2 minutes

I recently updated my tomcat from 9.0.45 to 9.0.102 and now noticing weird behaviour in tomcat killing the sessions way before timeout of 2 hours in just 2 to 3 minutes. I added a stacktrace dump in ...
zackhalil's user avatar
  • 573
0 votes
0 answers
14 views

How to retrieve session using refresh token in react native

I'm using AWS Cognito for authentication in a React Native project with expo-router. I’m stuck on an issue where after successful login, everything works fine. But on app reload, the session check ...
Al Nayeem's user avatar
0 votes
1 answer
44 views

How to delete the user after logout in Sveltekit using runes?

I am trying to get auth working in my sveltekit 2.20.7 / svelte 5.27.0 application I have an express backend that runs on port 8000 and uses express-session with connect-redis and passport to provide ...
PirateApp's user avatar
  • 6,278
0 votes
0 answers
11 views

Why sessions not saved or accessed? [duplicate]

I have developed a login page and if the username and password are correct it will create session variables then redirect to the main page. if the user tries to go to main page without logging in it ...
TLS Python's user avatar
0 votes
1 answer
38 views

user = session.get('user') returns None when i try to access it across some different page

This is my login authentication API. def login(): if request.method == 'OPTIONS': return jsonify({'message': 'CORS preflight successful'}), 200 data = request.json email = data....
rucha_0803's user avatar
0 votes
0 answers
9 views

HQL query returns NULL after session.save(object) and session.flush()

I am creating an enablePackage API code flow in JAVA. I am using the Spring MVC project. I am facing an issue related to HQL query returning null. The code logic is as follows: Foo.class List<...
Kartik Wanjari's user avatar
1 vote
0 answers
32 views

Multiple sessions in db

I am currently facing an issue while deploying my application on Kubernetes using an inner-source Helm chart module. The application is creating multiple inactive database sessions. I have verified ...
Radhika Saini's user avatar
0 votes
0 answers
46 views

Java & Tomcat - session timeout issues with pe:session & p:commandButton

Our application has a global session timeout of 30 mins. Individual is programmed this way as well (maxInactive(30*60)) so there is no mismatch in session timeout. When tested in a smaller timeframe (...
9SMo2's user avatar
  • 1
0 votes
0 answers
25 views

Selenium video container getting null as session Id

I recently deployed selenium grid 4 on my kubernetes cluster using the helm chart https://github.com/SeleniumHQ/docker-selenium/blob/trunk/charts/selenium-grid/values.yaml. Everything works fine but ...
Desmond Ndambi's user avatar
0 votes
0 answers
58 views

Actual practical advantage of SQLAlchemy scoped_session vs classic session in worker

What is the actual practical advantage of using a scoped_session vs a normal session when using a contextmanager to handle opening and closing of the session at the appropriate times? In the following ...
Jan-Pieter's user avatar
0 votes
0 answers
20 views

How to configure No Input or session time out in Dialogflow CX chat model

In Dialogflow CX, there is no default 'no input' option for the chat model. By default, it has a 30-minute timeout, but I want to reduce the time limit. Is there any way to do this in Dialogflow?
Gnana Soundari S's user avatar
0 votes
0 answers
19 views

ASP.NET MVC Language coded url structure

My first goal is to get the id and code of the language when the user selects a language and keep it in the session. Because I will use the id for database queries and I want to be able to use the ...
khalannz7's user avatar
1 vote
2 answers
48 views

Toast Notification Appears on Every Page After Login Failure in CodeIgniter

I'm facing an issue with toast notifications in my CodeIgniter app. After a failed login attempt, the error message is displayed correctly using Toastr. However, this message keeps appearing on every ...
Shahreyar Habibi's user avatar
0 votes
0 answers
20 views

NextAuth.js session.expires not updating correctly from JWT exp

callbacks: { async jwt({ token, user }) { if (user) { token.user = jwtDecode<UserToken>(user.accessToken); token.user.accessToken = user.accessToken; if (token.user.exp) ...
Sina's user avatar
  • 1
1 vote
1 answer
54 views

Flask - Problem with passing variables between routes OR with sessions

I have been struggling with this for nearly a week. I am learning Flask, building an application for collectors. Collectors can view the database, but can add/edit only after login. The app requires ...
DeyanD's user avatar
  • 13
1 vote
0 answers
60 views

Why session is not working in pricehelper but working perfectly in paymenthelper

I am working on a Laravel project where the shipping cost is dynamically calculated based on the selected city. The shipping_address session data is stored correctly and works inside ...
Teebabs52's user avatar
0 votes
1 answer
75 views

Laravel 419 Page Expired on Hosting but Works Locally

I recently faced an issue with my Laravel application after deploying it to a hosting server. When trying to log in, I kept getting the following error: 419 Page Expired However, everything worked ...
Mustafa Alqershi's user avatar
0 votes
0 answers
46 views

Django session cookies not persisting

I have a Django API which upon successful login, uses the Set-Cookie Response Headers to set a sessionId and CSRF Token in the cookies. I had it working and all of a sudden it stopped, the cookies no ...
Acheese's user avatar
  • 101
0 votes
0 answers
20 views

Django + Next cookies not being set when app is hosted

I have a Django app hosted on Google Cloud Run that upon logging in, sets a sessionid and csrftoken in the browser cookies. In my frontend Next app, which I am currently running locally, I redirect to ...
Acheese's user avatar
  • 101
0 votes
3 answers
60 views

Regarding session in Flask

In below code I'm trying to fetch Sum of amount of expense using SQLALchemy on Dashboard, Query is Correct but didn't get session["user_id"] also tried to print user_id but didn't get any ...
Anuj Kanada's user avatar
0 votes
0 answers
48 views

POS System - Unable to Toggle 'Show Receipt' Feature Based on Setting (Laravel, JavaScript, Session Management)

Problem Description: I am working on a POS system where I need to allow users to enable or disable the "Show Receipt" feature after completing a cash transaction. The receipt should only be ...
Mohamed Al Hamdhy's user avatar
0 votes
0 answers
11 views

Auth middleware fails to check for the session

I have multiple middlewares at the same file, if user is not logged in; the auth middleware will redirect user to login page, the problem is even when user is logged in it will return login page ...
Aasem Shoshari's user avatar
1 vote
1 answer
74 views

servletRequest.isSecure() == true but "http".equals(servletRequest.getScheme())

Context: I'm migrating a Spring application 5.3.x hosted on jdk11/tomcat9 to Spring 6.1.x hosted on jdk21/tomcat11 My issue is, after the migration request.isSecure() returns true when I request the ...
Freddy Boucher's user avatar
0 votes
1 answer
70 views

Why do my session variables disappear after calling session_regenerate_id(true)?

I have a method createSession() that calls session_regenerate_id(true); to prevent session fixation: class Session { public string $id; public string $username; public string $role; ...
hoshiiseventeen's user avatar
-1 votes
1 answer
47 views

Frontend is not receiving cookies from backend

Stack: backend(NestJS, Redis, Postgres), frontend(NextJS) I got backend running on vps server with nginx configured on domain https://backend.exampleurl.com and frontend running on same domain https://...
Temirlan's user avatar
1 vote
1 answer
96 views

Complete messages from another thread when using ServiceBusSessionProcesser

I'm trying to use the Azure ServiceBusSessionProcessor (Azure.Messaging.ServiceBus) to processes tracking-related messages from an application. Due to different reasons (not to bore you with the ...
Mike's user avatar
  • 165
1 vote
0 answers
30 views

Issue with WP_Session_Tokens::destroy() – Nothing happen

I have an issue with this code: $manager = WP_Session_Tokens::get_instance(get_current_user_id()); $manager->destroy(0); I want to destroy the session at index 0, but it's not working. How can I ...
Amir's user avatar
  • 11
1 vote
0 answers
173 views

Laravel session values are deleted immediately (Laravel 12)

I create session and session values are deleted when I refresh the page. I make the user login and when I refresh the page, auth()->user() returns me NULL value as if there is no one logged in. ...
Burhan Çelebi's user avatar
1 vote
2 answers
79 views

Setting partitioned cookies in PHP, by header() maybe?

How could I set partitioned cookies in PHP ? ("CHIPS") ? From my understanding the setcookie() cannot do that, I assume this can be done by header() but I cannot find any info regarding ...
adrianTNT's user avatar
  • 4,105
0 votes
2 answers
54 views

How do I start a new session/transaction for each object in a job with a for-loop?

I am using Java EE, not Spring, in a Payara environment. I have a job which goes through a list of objects called "position". For each position, a complex algorithm is run, which makes ...
DocU's user avatar
  • 31
0 votes
1 answer
58 views

Session data is lost after submitting a form in servlet application

I'm working on a java servlet application on reset password function. The get method basically check a parameter email and check if the email valid. Then set the email as an attribute in the session. ...
Hibiki Supersanta's user avatar
0 votes
0 answers
54 views

TLS Verification Error (x509: certificate signed by unknown authority) with tls_client and Bright Data Proxy

I’m trying to use tls_client in Python to access https://www.google.com/ through a Bright Data residential proxy, but I keep getting an SSL verification error: tls: failed to verify certificate: x509: ...
Harsh Rao's user avatar
0 votes
0 answers
25 views

How to main multiple sessions in python for a Chatbot

where the I will receive the token to my first endpoint from the front end when the user connects to the bot, I will decode that token and extract the details such as Db conn string user id and so on. ...
Abdhaheer Ahamed Kabeer's user avatar
1 vote
0 answers
249 views

Setting cookie's domain causes TypeError: option domain is invalid

Follow-up from Express session loses passport user ID on a Safari cookie every week . In Express and NodeJS, I want to set a cookie's domain so user agents see it as a first-party cookie. If I set it ...
ginjaemocoes's user avatar
  • 4,472
0 votes
0 answers
38 views

Transfer value in WebFlux session during redirect

I am using WebFlux. In the controller @PostMapping("login-initiation/{registrationId}") public Mono<ResponseEntity<Void>> loginInitiation(@PathVariable String registrationId, ...
McSim's user avatar
  • 1
1 vote
0 answers
33 views

Flask Google OAuth Creates New Session After Redirect - How to Persist Session Data?

I'm building a web app using Flask with Google OAuth for calendar integration. I’m running into an issue where a new session is created after the user is redirected back from Google’s OAuth login. ...
Max Bowman's user avatar
0 votes
0 answers
126 views

Python, bigquery set session_user

Good day all, I am learing Python and am trying to connect to Google bigquery. In that I succeeded. I have a view in BigQuery that uses the Session_User() functionality to limit the information that ...
Harm van der Linde's user avatar
1 vote
1 answer
123 views

Powershell Core: Enter Powershell 5.1 Session

I have scripts that need PowerShell Core, but also need to use some ancient modules Microsoft won't bother to update for PowerShell Core (ActiveDirectory/GroupPolicy specifically), so it also needs to ...
Lars Grünheid's user avatar
0 votes
0 answers
24 views

Websocket use session but how can manage those session on multiple instance

Scenario I have Two Spring Boot services(service-a,service-b) and one front-end service. The front end service will connect to my service-a via STOMP Web Socket broadcast channel. When messages arrive,...
Kyaw Zayar Htun's user avatar
1 vote
1 answer
72 views

Express session loses passport user ID on a Safari cookie every week

I've been studying this bug for a while. I have a NodeJS application with cookies when logging in, and the cookies are supposed to last one year. I check the application every day on Google Chrome, ...
ginjaemocoes's user avatar
  • 4,472
0 votes
0 answers
39 views

What is the best practice method for automatically refreshing user's Keycloak access tokens with React + NestJS?

I have an application that uses Keycloak SSO for authenticaton. I have a confidential client registered on Keycloak. At the moment, for each HTTPS request from my front end to back end, I send the ...
ahbyz's user avatar
  • 15
0 votes
0 answers
50 views

How to get a user's access token when overriding keycloak code (JAVA)

Some context: I’m working on a registration-form-extender module to extend Keycloak's functionality. The goal is to terminate all sessions and log the user out from all devices whenever they update ...
Dora Boutsini's user avatar
1 vote
1 answer
68 views

Laravel Session Getting Lost [duplicate]

I am using Laravel 11 for a small project and I am trying to handle internationalization. I have a dropdown where I allow a user to select languages and based on the selection, it takes the user to ...
ackerchez's user avatar
  • 1,786

1
2 3 4 5
887