Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
0 answers
35 views

I am incredibly new to coding and Python, and wanted to know what code I need in order to prevent a session timeout. I am coding a text adventure, and some of the blocks of writing are long, and by ...
Ir0nic's user avatar
  • 9
0 votes
2 answers
116 views

Authentication flow: User is redirected back to my site (to /auth/callback) after logging in with a 3rd party. The redirect back includes query params. The React function on the callback page sends ...
Thomas's user avatar
  • 7
0 votes
1 answer
52 views

I have implemented or extended on top of Spring Authorization server. I have a authentication controller that accesses the client-id from the RequestCache object. Now, I have built a sample OAuth app ...
Katlock's user avatar
  • 1,418
-1 votes
1 answer
67 views

A question on consideration for case/approach choice. Let's say we have an app that has an ORM model and also uses simple realisation of the Command pattern. Inside of each command we need to ...
Gennadiy's user avatar
  • 341
0 votes
0 answers
75 views

I need to integrate with a third-party system. I need to authenticate there and obtain a sessionId. So, my application will have a URL, login, and password to obtain a sessionId. But to avoid having ...
Aliaksei's user avatar
  • 1,449
0 votes
0 answers
55 views

I'm using laravel 8 with SESSION_DRIVER=file I have code that run like below, and I have a problem why the recursive not extending the expired time of session? Each process take 30sec, but after ...
Cahya Purnama's user avatar
1 vote
1 answer
107 views

I have the following file /common/session.php <?php session_start(); $secret = getenv('SECRET'); $userinfo = array( 'private'=>$secret ); if(isset($_GET['logout'])...
lharby's user avatar
  • 3,337
525 votes
28 answers
575k views

I have a PHP file that is sometimes called from a page that has started a session and sometimes from a page that doesn't have session started. Therefore when I have session_start() on this script I ...
Arda's user avatar
  • 11k
306 votes
26 answers
746k views

I get the following exception: Exception in thread "main" org.hibernate.LazyInitializationException: could not initialize proxy - no Session at org.hibernate.proxy.AbstractLazyInitializer....
Blerta Dhimitri's user avatar
0 votes
0 answers
47 views

I have a Next.js frontend and NestJS backend. In the backend there is token generation with refresh token rotation logic, and I want to use the same tokens in the frontend with NextAuth setup. Here’s ...
Sudeep Lamichhane's user avatar
180 votes
25 answers
290k views

I recently created a new Laravel project and was following along with the guide on Authentication. When I visit either my login or register route, I get the following error: ErrorException in Request....
mattrick's user avatar
  • 4,010
175 votes
39 answers
277k views

How do I resolve the problem of losing a session after a redirect in PHP? Recently, I encountered a very common problem of losing session after redirect. And after searching through this website I can ...
dayuloli's user avatar
  • 17.2k
1 vote
1 answer
65 views

I am trying to write Tests for my App. In the controller I set a message in the session: $f3->set('SESSION.error_message', 'Some error'); I my test I mock a request to that route and try to check ...
MaximeW's user avatar
  • 440
2 votes
1 answer
172 views

I'm working on an ASP.NET Core Web API where I use session middleware with a configured idle timeout, e.g.: services.AddSession(options => { options.IdleTimeout = TimeSpan.FromMinutes(20); }); ...
Tom's user avatar
  • 1,344
1 vote
1 answer
261 views

I created a new Laravel 12 application following the Installation guide. The project is generated correctly and I ran all migrations. When I run php artisan --version I get: Laravel Framework 12.20.0 (...
Samball's user avatar
  • 879
1 vote
0 answers
48 views

I’m trying to deploy a MERN stack website that I’ve been working on locally. While everything works fine locally, after deploying to Render and Vercel, I can’t access session data through req.session. ...
egem's user avatar
  • 11
570 votes
9 answers
176k views

Is using sessions in a RESTful API really violating RESTfulness? I have seen many opinions going either direction, but I'm not convinced that sessions are RESTless. From my point of view: ...
deceze's user avatar
  • 525k
1 vote
0 answers
139 views

I created authentications using Better-Auth and Google as the auth client. I have the correct URL for the authorized JavaScript origins and for the authorized redirect URL and I believe my set up is ...
Elijah Davis's user avatar
322 votes
3 answers
216k views

I use SQLAlchemy and there are at least three entities: engine, session and connection, which have execute method, so if I e.g. want to select all records from table I can do this on the Engine level: ...
ololobus's user avatar
  • 4,158
1 vote
1 answer
52 views

I'm developing a custom OpenCart 4.x module that adds a button to the order page to log order data via AJAX. The button makes a GET request to my custom controller, but I'm getting an "Invalid ...
blaize's user avatar
  • 99
0 votes
1 answer
36 views

Is it possible to handle in Spring Web App that two incognito tabs (within the same profile, e.g. Chrome) have different sessions? Currently, as far as I can see, two tabs have the same sessionId. Is ...
sheeshay's user avatar
0 votes
1 answer
68 views

I am currently using Rust Async-Session's Memory Store as a session storage (because I followed the OAuth example in Axum examples). While my code works, the module for Memory Store explicitly states ...
Doruk's user avatar
  • 233
229 votes
14 answers
220k views

I'm trying to set session cookie in javascript like this: document.cookie = 'name=alex; path=/' But Chrome doesn't delete it even if I quit browser and launch it again. I checked in Firefox and ...
mgs's user avatar
  • 2,689
0 votes
1 answer
159 views

I've inherited working on a next.js app and have run into a quite frustrating scenario. After logging into the app, the session (iron-session) is stored in a cookie for authentication/session ...
shaedopotato's user avatar
313 votes
2 answers
204k views

I want to know the difference between sticky- and non-sticky sessions. What I understood after reading from internet: Sticky : only single session object will be there. Non-sticky session : session ...
Sunny Gupta's user avatar
  • 7,057

1
2 3 4 5
886