Questions tagged [session]
A session refers to the communication between a single client and a server. A session is specific to the user and for each user a new session is created to track all the requests from that user.
44,063
questions
0
votes
0
answers
10
views
How to access a bean in sessionDestroyed after session expires
Hi in my JSF application I want after the session expires I want to access a bean to access some files and delete them but the bean is always null and I cannot retrieve anything .
0
votes
0
answers
13
views
Is it possible to keep Cross Domain session alive ASP.NET, JavaScript
I have 2 portals:
Portal1.com where user logs in, and it has a link, which opens Portal2.com in a new browser tab. User then remains on Portal2.com and completes its task.
Currently I have cookies ...
0
votes
3
answers
36
views
Cannot fetch data from Nodejs backend to React frontend
I'm building MERN stack CRUD with goolge login
I'm running my server on port:3001
and frontend on port:3000
getAll() {
return axios.get("http://localhost:3001/jobs")
}
try to fetch ...
0
votes
0
answers
15
views
Data from session on client side is not added but it is recreated
This thing works on server side fine for me, session successfully adds data in a cart as it should. But on client side (I'm using axios) the session is constantly being recreated.
This is file where I ...
0
votes
1
answer
24
views
Codeigniter session getting destroyed after redirect
May be a duplicate, but the answers on such questions does not work.
CodeIgniter version: 3.1.13, the latest.
Server Software: Ubuntu 20, Apache, PHP 8.0, PHP 8.1
What's happening?
Session (logged ...
0
votes
0
answers
16
views
MERN app doesn't function correctly on heroku netlify but works properly on localhost
I'm having a hard time trying to fix my login page
I've provided a very short youtube video on what is the problem that I encountered.
Youtube Link: https://youtu.be/lpyJo6tmiRs
It works properly on ...
0
votes
0
answers
8
views
Role of Socket.io with sessions
What is the use of Socket.io with Express sessions? With Sockets the event emitter will emit and whoever wants to listen will listen. The Socket connection can also be closed anytime we want to do so. ...
-1
votes
0
answers
17
views
Logout with multiple tabs in php with idle tab
I have a scenario, I tried lots of solutions but did not got any solution.
I am logged in with one username and password in one tab then in 2nd tab again I am logging in so same user gets logged in. ...
0
votes
0
answers
38
views
New session for each call to the Spring Boot server with JWT problem
I'm working to limit the number of sessions per user in Spring Boot, so as to limit the number of devices it can connect.
this is my WebSecurityConfigurerAdapter:
http.sessionManagement()....
3
votes
1
answer
27
views
Is this a correct way to validate my CSRF token?
I want to correctly implement a CSRF token with validation into the forms of my website.
Here is how the token is generated:
$_SESSION["token"] = bin2hex(random_bytes(32));
Here is the ...
0
votes
1
answer
11
views
Express redis session not working locally
My redis session isn't working locally.
EDIT:
Also just found out it actually doesn't save a cookie
setting req.session[somekey] is undefined
like:
req.session.user = user;
BUT
when working with ...
1
vote
1
answer
35
views
how to increment session variable on every page? php/mysql
i have 2 session variable. first one is an array to store inputs, second one is for checking index number.
if(isset($_POST['submit'])){
$selected=$_POST['check_list'];
foreach ($selected as $c)...
0
votes
0
answers
13
views
Openresty encrypts and decrypts user sessions
Problem Description
I now do a website reverse proxy through openresty: sss.my.site, the session name is sid
my question
How can openresty reset the user's session and ensure that the system login ...
0
votes
1
answer
33
views
After clicking button change text and keep it even after reopen window with sessions
I am new to laravel and php and I am trying to change text after clicking button and keep it that way even after reopening window. I use sessions for this purpose.
<?php
$bool = $_SESSION["...
2
votes
1
answer
19
views
Can anyone explain how session_start event count in GA4 is different from session metric?
I studied the definitions of session metric and session_start event in GA4 documents. it mentioned that every time a session starts a session_start event is counting, but comparing session metrics in ...
-1
votes
0
answers
21
views
Flask session variable stuck
Thanks to the previous answer from the community i have partially completed my project which is a data scraper using flask.
Most of the codes are fine (i hope) except when i try to input the page ...
-1
votes
0
answers
14
views
PineScript Assistance with Two Issues
Is anybody able to help me with a PineScript issue?
Link: https://www.tradingview.com/script/PMWhL0t7-ICT-Sessions-Killzones/
Problem(s):
Only 3 Boxes show up on Mondays; 4 Boxes are supposed to show ...
0
votes
1
answer
37
views
Passing session to function in Gatling Java
I am trying to pass the session to a function in Gatling as shown in .body():
exec(http("ED/CTS/SGM")
.post(IDS_BASE_URL + edEndpoint)
...
0
votes
0
answers
28
views
how do i act in user context c# sql application
In a c# application with SQLExpress, I'm trying to store user details after login. Let's say users are already put into the database by another form. In a dashboard, there is some data analysis with ...
0
votes
0
answers
13
views
In Codeigniter after adding #[\ReturnTypeWillChange] the session destroy functionality is not working,
I am using Codeigniter 3.1.10.
I updated PHP version to PHP 8
Then I added this #[\ReturnTypeWillChange] for all methods of the file Session_files_driver.php because I was getting no of session ...
0
votes
0
answers
15
views
Laravel - Change Session Cookie name at runtime
My Laravel app has multiple subdomains, which are their own isolated environments:
domain1.mywebsite.com
domain2.mywebsite.com
However, the session cookie name is the same for both subdomains. I ...
0
votes
1
answer
21
views
FlutterSession delete values
Is there a way to remove all session values that are stored in flutter_session ?
I have added values to session like following :
await FlutterSession().set('login_data', jsonEncode(response....
0
votes
0
answers
14
views
Secure storage of client-side keys
I am building a front end for an existing API that uses Ethereum private keys to sign data. This works completely fine for other applications sending data to the API, however I cannot find a secure ...
0
votes
0
answers
15
views
Conditional render with svelte kit for protect routes with token of sessionStorage
Im trying to generate a conditional render for protect routes with token. But i have the problem that when i enter the route with token first, for one second, is rendered the error page.
Code:
<...
0
votes
0
answers
21
views
req.user is undefined - Passport JS with node and React in web host (works on local host)
in local host ive started the server in port 4000 and the client in 3000.I've tried several stack overfow posts (problem with cors, session config) but nothing improved my results. The following code ...
0
votes
1
answer
28
views
How do I make this express-session logic work with prisma?
I am new to prisma and I want to use it with PostgreSQL. I need to add authentication to my backend, but I was unable to create a session table. I was able to add this authentication logic while ...
0
votes
0
answers
12
views
How to notice a Spring session timeout when using JDBC session storage
We are using Spring Session with storage-type 'jdbc' in an application where some resources are attached to every valid Spring session. Whenever a user
logs out from the application, these resources ...
0
votes
0
answers
9
views
Shadow a RDP session in windows 10
I like to shadow a windows 10 RDP session from windwos 10 local computer. I've tried this link: http://woshub.com/rdp-session-shadow-to-windows-10-user/ . I updated all the registry and firewall ...
0
votes
0
answers
34
views
Why we get error 419 page expired in Laravel even with @csrf token provided in form in live server ?The website run properly in localserver
I developed website with laravel 6.1 and it works fine in local server.But after putting it in cpanel i got issue 419|Page Expired.
I had tried many options among them generally many says it is csrf ...
0
votes
0
answers
33
views
Selenium python save instagram login info
Im trying to use selenium for instagram. so I logged in instagram then saved the cookies with:
pickle.dump( driver.get_cookies() , open(r"D:\selpre\seleniumCookies.pkl","wb"))
...
-1
votes
0
answers
27
views
I clear my cookies and I can still log in - Spring Boot Security
Can you explain please.
I have set up Spring Security. When I try to enter the application, the application asks me to enter a username and password - this is good, logical and true.
But when I stop ...
0
votes
0
answers
10
views
How to get new session after session expiry of AWS cogninto flutter
after logging in and using application for 50 min or more apps API doesn't work as the session has already expired by AWS cognito. What are the steps to revoke the new Session and what are the best ...
0
votes
0
answers
26
views
How do I share OAuth2 access_token from an Android/iOS app with a Browser?
Use Case:
I am working with a 3P mobile app (Android/iOS app that I do not own) where I need to display some of my web pages as a part of the app. I am using web views to render my web pages and let ...
0
votes
1
answer
36
views
Session destroy randomly after redirection from PayU payment gateway redirection in Codeigniter 4
This question is posting after trying many solutions for about past 2 days and nothing is worked. Session in my Codeingiter 4 project behaving in a strange manner. There is a payment module in my ...
0
votes
0
answers
33
views
Detect Session Ended By User in .NET Core 6
I am using .NET 6
How can I detect session ended by user? I found many solutions which developers have implemented in different ways, but why does this event not exist in .Net 6?
I created a ...
0
votes
0
answers
29
views
Fail to redirect to the previous page after authenticating the user login using passport.js
[isLoggedin Middleware]
[Routes]
[login route and trying to authenticate using passport.js]
module.exports.isLoggedin = (req, res, next) => {
if (req.isAuthenticated()) {
return next(...
0
votes
1
answer
46
views
Unable to set cookie from Express JS session in brave, firefox, etc browsers and in chrome, and edge, cookie isn't working as expected
I have created a website in which I'm facing three issues:
My backend Express JS code:
index.js file
/* eslint-disable no-undef */
const express = require("express");
const cors = require(&...
0
votes
0
answers
31
views
Redis error : Timeout performing EVAL (5000ms) with asp.net session state
Getting frequent issues as below after migrating session state to redis
Timeout performing EVAL(5000ms), inst: 0,qs:5,in:65536,serverEndpoint: Unspecified/xxxxx, mgr 10 of 10 available, clientName:...
0
votes
0
answers
20
views
Django post_save signal ( request.COOKIES['device'] )
Currently working on a Django Ecommerce project so I would like to get the cookies of a user from the model I know we use request.COOKIES['device'] in our view but is there a way to get the cookies in ...
0
votes
0
answers
18
views
Tried to run sess.run outside the scope
Hello, I'm having trouble when using tf.session().
I want to separate the model loading part and the frame handling part from each other (because the frame is the loop). here is my code
init :
...
1
vote
1
answer
28
views
PHP: $_SESSION destroyed after page reload for my custom session
I have develop a plugin for customer portal. For check login I have use custom session. Few month ago I have face this issue which create for session_start() function and I have already fix this.
Now ...
1
vote
0
answers
17
views
ExpressJS & AJAX - Session Returns Undefined
Structure
I have an API hosted on a secure server with HTTPS.
as such: https://example.com
Also, I have a frontend index.html located on my Desktop.
Goal
I would like to send an ajax post request to ...
1
vote
1
answer
22
views
Does a python Session instance explicitly need to be closed?
Let's say I'm using a requests.Session instance to make API calls (rather than requests.get(...)).
If I do not explicitly call .close() on the session instance after finishing with the calls, is the ...
0
votes
0
answers
28
views
Selenium webdriver logs out after loading a page
I have a pytest fixture that opens the login screen, enters user_id & password, clicks the login button and waits for 3 seconds (page load finishes within 3 seconds).
@pytest.fixture(scope='...
-1
votes
0
answers
28
views
How can I make the following code use JSON serializer instead of the JDK one?
I tried to use the following configuration class in SpringBoot to serialize the session content in JSON format, but it seems not working. The beans were instantiated, but the serialize and ...
0
votes
0
answers
16
views
Cannot resolve symbol session - Gatling Java [duplicate]
I am translating this code from Scala to Java (I did not write the scala code and I am somewhat new to Java).
SCALA
val teacherCreateAssigmentsSetup = group("teachersCreateAssigmentsSetup") {...
-1
votes
0
answers
8
views
need to understand authentication
I'm trying to learn about authentication in web applications and its so confusing, cookies, JSON web tokens, sessions, i was wondering if someone could share a link to a video or a website which ...
0
votes
0
answers
41
views
Azure Service Bus - Unable to close a session manually using Java
There is an Azure Service Bus Queue with the session property enabled (Requires session = true)
The consumer is a native Azure Java "client" (com.azure:azure-messaging-servicebus)
The ...
0
votes
0
answers
17
views
ConnectionAbortedError: [WinError 10053] when trying to connect to itself with a web app
I have just ran into a funny situation when testing my FastAPI Python application and thought it might be useful for some of the people who reuse sessions in their apps and want to test requests using ...
0
votes
0
answers
15
views
Node JS in memory VS external session
This is all the information that I have about session stores
"When you use memory-based storage, all session information is stored in memory and is lost when you stop and restart. Better to use a ...