Questions tagged [expired-sessions]

74 questions
0
votes
0 answers

Laravel page expired 419 only sometimes

I have a view in my Laravel application that has a form with the @csrf inside. The problem is that I faced the 419 Page expired exception only sometimes. When I refreshed the page, the login page appeared and after login, a few times the form…
Shahab.es
  • 367
  • 6
  • 20
0
votes
0 answers

Page expired just when hosting my laravel app

My laravel app is working fine at localhost, but when I deploy it in server, after login I have a 419 error page expired, I don't know what is the error !! I mention the csrf token in app.blade.php but nothing was solved. I use Laravel 9, laravel…
0
votes
0 answers

Wicket 9.9.1: Unexpected RuntimeException Last cause: Component 'x:x' has been removed from page

I have a Wicket 9.1.1 application, running under Java 11 and Payara 5.201. The latest version of this application is currently being tested by a professional tester prior to release. His work style seems to involve a certain amount of testing to…
sushilab
  • 21
  • 6
0
votes
1 answer

why spring redis session 'touch' method called in 'cleanExpiredSessions' method can clean expired session

i am chinese,My English is so poor,I try my best to describe my problem clearly I recently learned about the spring redis session cleaning mechanism,the clean method is 'cleanExpiredSessions' in RedisSessionExpirationPolicy class,What makes me…
0
votes
1 answer

previous page won't expire

I have a page that has two 'pages' within. Basically it's two DIVs - one is hidden at all times, and it is toggled dependent on a Radio button. One of these DIVs contains a form which you can submit. I want this whole page, especially that form,…
Cody
  • 8,686
  • 18
  • 71
  • 126
0
votes
2 answers

How to logout user through specified time in laravel

How can I logout a user after 48 hours. public function generatePass(Request $request) { $myRandomString = Str::random(8); DB::table('web_passes')->insert([ 'pass' => $myRandomString, 'user_id' => $request->user_id, …
mqamar
  • 11
  • 4
0
votes
0 answers

Change TTL connect-mongo expiration option to session time

I'm trying to store sessions into MongoDB. The problem I'm facing is that I can't set the MongoDB TTL to the session duration. Here's my code : app.use(session({ secret: md5("test"), resave: false, saveUninitialized: true, store:…
0
votes
2 answers

In Wicket 9, when the user's session expires in certain pages, they are redirected to the login page not the Session Expired page

While upgrading some legacy code from Wicket 1.5 to Wicket 9, I found that redirection to a "Session expired" notification page seems to be partially broken. I have the following statement, which always used to work before, in the main application…
sushilab
  • 21
  • 6
0
votes
1 answer

What is the best way to periodically ask a user if they wish to remain logged-in when the user is on a web-page?

In order to protect member users' information that is maintained by my web-site and, in general, proprietary information on my web-site, my web-site requires that users create accounts and then log into their accounts before they can navigate away…
user2505564
0
votes
0 answers

Apache Curator failing to reset expired session (Apache Curator 4.2.0; Apache Zookeeper 3.4.0)

I asked a similar question with reference to older versions of Apache Curator and Zookeeper (Apache Curator failing to reset expired session), and was recommended to upgrade. I've now updated to more recent versions of the client software and am…
dnw
  • 143
  • 9
0
votes
0 answers

use session is not expires , and user is not redirecting to Login page after idle time (MVC)

I'm not sure how to explain this problem. We have 3 environments (Dev,Staging, and Prod) .Project is written in MVC, code is the same in all . webconfig setting for sessionstate timeout is the same as below : we have…
Sara N
  • 1,079
  • 5
  • 17
  • 45
0
votes
0 answers

sessionStorage won't expires objects

Some details might useful: ReactJS version 16.12.0 Chrome version 78.0.3904.108 Below is the setting of sessionStorage What happened Setting of sessionStorage was successful but after closing and reopening the tab key:value is still there.…
Aljohn Yamaro
  • 2,629
  • 25
  • 22
0
votes
1 answer

Django expire reservation

Hello I'm writing a simple app for reserving and buying the tickets in in cinema, one of the task is to reserve a ticket for some time (ex. 1 hour) its then in pending status and can be paid withing this period. Do you have any recommendation how to…
0
votes
0 answers

How to expire jwt token for multiple devices in Asp.net core1.1

We want to restrict users from login different devices. So if any loggedin user logs into another device we want to expire previous token. So is there any way we can expire previous issued jwt tokens.
Kenny
  • 819
  • 1
  • 9
  • 24
0
votes
0 answers

PHP check if session from session folder is active

I need to check if each session over my website is still active or not. I used to cycle over each session in the folder given by the php command session_save_path(), the problem is that even if a session expires, the respective folder doesn't modify…