44,254 questions
0
votes
1
answer
67
views
PHP login logic with "resume previous login"
I'd like to realize a login mechanism in PHP, able to:
ask username and password the first time you log in;
don't ask again username and password if you re-access the site within x days since the ...
0
votes
1
answer
33
views
How to destroy session by session attribute?
We are implementing SSO and it is materializing nicely in Yii 1.1.29. Yet, we need to log out from the Yii site if the user logs out from the IDP.
To make the scenario clearer, let's suppose that user ...
0
votes
0
answers
42
views
My model in database using SQLAlchemy and Flask cannot save data. TypeError: personal_guide() got an unexpected keyword argument 'content'
I am getting the response from a LLM called Moondream from Ollama. And there is nothing wrong with it because I tried to debug by print out its response, and it was fine. I believe that the problem ...
0
votes
1
answer
133
views
How to Deserialize Binary byte[] Data from IDistributedCache in ASP.NET Core?
Here's a question based on your scenario that you can ask on StackOverflow:
Title:
How can I correctly deserialize byte[] data from IDistributedCache that results in a binary format?
Body:
I am ...
1
vote
1
answer
128
views
$_SESSION data gets lost after Stripe payment link
I am having some strange problem.
I have a form:
<form action="goToStripe.php" method="POST">
<div style="padding-bottom: 30px;">
<...
-1
votes
2
answers
344
views
What should we store in the session when using session-based authentication? [closed]
I'm learning how to use session-based authentication for my web app, but I'm not sure what kind of data should be stored in the session.
What information do I need to keep in the session after a user ...
0
votes
0
answers
48
views
ASP .NET Core Session Values are not preserved
This one is complicated. I have a following middleware in my Program.cs:
app.UseMiddleware<LowercaseUrlMiddleware>();
app.UseHttpsRedirection();
app.UseWebOptimizer();
app.UseStaticFiles();
app....
0
votes
0
answers
41
views
Django session creates new session key on every page refresh, causing duplicate carts
I am working on a Django app that uses user sessions to manage shopping carts. However, every time i refresh the page, a new session key is generated, which causes a new cart to be created. This ...
0
votes
1
answer
97
views
Is this the correct way of using sessions with multiprocessing in a process safe way in Python?
I am going to implement requests with sessions in my application, but I have read some threads concerning issues with thread and process safety, but those arent exactlty recent.
My application run 800+...
0
votes
0
answers
80
views
TypeScript Error: Property 'userId' does not exist on type 'Session & Partial<SessionData>'
I'm encountering a TypeScript compilation error related to session management in my Node.js application. Here is the error message I receive:
D:\Web Dev\RAHI\Backend\node_modules\ts-node\src\index.ts:...
1
vote
1
answer
61
views
How to write to the Flask Session from a child process
I have a flask web app that does image processing. The parent application calls a function that creates several temporary images, writes them to disk, and stores their paths in the flask Session. That ...
0
votes
0
answers
75
views
.NET 7.0, ajax and sessions
I have a web app in .NET 7.0, which is mainly one single webpage (Index), with severals partials views :
one the first call to Index with some parameters, the session is first cleared, then the ...
-1
votes
1
answer
71
views
Batch statements return "Unconfigured table" error
I am seeing an unconfigured table error when I execute a batch statement(not consistent).
In the batch statement, I am having several prepare statements(10)
Few of the prepare statements(2 of them) ...
1
vote
1
answer
347
views
Auth Session Not Persisting After Login Attempt
I'm using Laravel 11 with MongoDB for authentication. However, after a successful login attempt using Auth::guard('web')->attempt(), the authentication session is not persisting, and Auth::user() ...
0
votes
0
answers
256
views
How to get online status of my users on my NextJs App
My NextAuth Option Code is (only the important part)
callbacks: {
async jwt({ token, user }) {
if (user) {
token.id = user.id;
token.email = user.email;
token.role = ...
0
votes
1
answer
66
views
How do I create a session that runs from friday till sunday the following week?
I understand that sessions can be written as such
For e.g.
session1 = "1000-1300"
or
session2 = "1000-1300:2" for mondays only
However I am unable to write a session that runs ...
1
vote
0
answers
59
views
iOS blocks passing session data within an iframe
I have this project with a parent page on one domain that includes an iframe on another domain.
Within this iframe I want to pass session data. This means:
index.php is called within an iframe and ...
0
votes
1
answer
34
views
Session data lost after flask app is redirected to spotify authentication URL
I am using authorization code flow to work with Spotify API.
@app.route('/login')
def login():
scope = 'user-read-private user-read-email user-top-read playlist-modify-public playlist-modify-...
0
votes
0
answers
51
views
PHP with FFI extension loading a pascal dll, how can I control a global variable?
I have one simple page with two methods, one to charge data into inputs and other to save then.
Both methods are using FFI to access one pascal dll, but I need to initialize the dll at the first ...
0
votes
1
answer
64
views
How to share session cookie between a Koa app and Experss app?
I have an API built using Koa v2 and we have a cookie session based authentication. For that, we use the koa-session library and it works. But now, we are migrating our API to NestJS, using express as ...
0
votes
1
answer
61
views
Express session variable is undefined on other routes after defining it in the login route
I've seen this question be asked many times, but there is still no answer after I've gone through a dozen similar questions. The core of the problem is I have a node server with a mongodb database, ...
0
votes
1
answer
27
views
Why is Flask session not storing variables between modules?
I'm currently storing session["username"] in my auth module and then trying to access it from my project module from y backend app, specifically from the home endpoint. Problem is session[&...
2
votes
0
answers
90
views
Enriching serilog logs with Session throws 'Session has not been configured for this application or request.' error
When creating a Serilog ILogEventEnricher everything works fine until I try to access session. Doing so throws the following error:
Session has not been configured for this application or request.
...
0
votes
1
answer
85
views
ckan sharing same cookie in 2 different machine's browser
I am currently working on ckan version 2.10 and deployed to a docker.
I have 2 machine with google chrome installed and both machine visited the same ckan's website. Let's called it PC1's browser and ...
0
votes
0
answers
27
views
Laravel Auth::attempt() cannot save sessions in the database
I am using laravel 11 and I seem to be missing something in the authentication setup.
I updated all user IDs to uuid instead of the default incremental int approach, unfortunately, Auth::attempt() isn'...