Questions tagged [session-state]
Session-state allows the retrieval of values for a given user as that user navigates through a website. It is used to maintain state across a visit within the constraints of the stateless HTTP protocol. Session-state is commonly abbreviated to session.
1,857
questions
0
votes
0
answers
17
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
25
views
Sessions lost after every publish in .NET Core and using AddDistributedSqlServerCache
I use AddDistributedSqlServerCache in my ASP.NET Core MVC project to keep sessions:
builder.Services.AddDistributedSqlServerCache(options =>
{
options.ConnectionString = builder.Configuration....
0
votes
0
answers
38
views
Session doesnt exist in the current context ASP.NET MVC
I'm using ASP.NET MVC, and I already have a sign-up and log in system set up. Now, the thing I'm trying to do is to use Sessions to identify which account is currently logged in.
The catch is, after ...
0
votes
0
answers
28
views
Set cookie to multiple domains
We have requirement that user session established in one region to be used in another region. Here one region is replication of other and we use cookies to track sessions
Our sample url: app1.<...
0
votes
0
answers
17
views
SSO response using POST from IdP to SP creates new session on SP
I have a Laravel application as the SP, on login page I have a sessionId (ID1).
I redirect to the IdP which on successful login will submit a POST request to my callback URL containing the ...
0
votes
0
answers
67
views
Streamlit Session being shared with multiple users
So I am making a Stream lit web application with python. Here is the link to the app: https://jensen-holm-mlb-simapp-app-kclnz9.streamlitapp.com/
I have already deployed the app but have come across a ...
0
votes
1
answer
56
views
How does a server maintain the state of a session with a client?
I'm reading about session management in ASP.NET and I'm a bit confused.
This is what I understand:
When a client starts communication with my application, a session is created and the state of the ...
0
votes
0
answers
43
views
Detect PHP session timeout
I need to detect if PHP session_start() has timeOut to tell the user that the session has ended.
I added an iFrame that checks session variables for validity. Every hour (JavaScript), the iFrame ...
0
votes
1
answer
30
views
Why do I get the empty $_SESSION variable?
It turns out that when I get the variable $_SESSION it's empty, and I do not understand why. Months ago it worked perfectly but then one day it no longer recognized the sessions and returns them null, ...
1
vote
1
answer
49
views
update the value of metric in streamlit using session_state
I have streamlit app where i load a dataframe with the ability to filter and return data based on the user input. I have a function that return the number of returned records using df.shape[0].
What i ...
0
votes
1
answer
26
views
bokeh check if session active
Is it possible in Bokeh to check if session is active? I'm drawing live data streamed from other thread, I want to stop streaming as soon as client closes session (e.g. closes tab).
0
votes
0
answers
10
views
Session login on webapplication NullReferenceExceptionError [duplicate]
I have created my login and sign up page and all is running well, however when I try to run the program now I'm getting an exception error of System.NullReferenceException: 'Object reference not set ...
0
votes
0
answers
8
views
In PHP how can I "refresh" a session when a user visits a page, so their session doesn't timeout? [duplicate]
My session.cookie_lifetime is set to 7 days (604800 seconds).
I've run into an issue where sometimes users get logged out in the middle of a long multiple file upload (using PLupload), because they ...
0
votes
0
answers
48
views
Number of inputs depending on another input
it’s my first time with Streamlit !
So as the title suggests, I have an input which is a number input and depending on that input, I want to add the same number of inputs.
import streamlit as st
...
0
votes
0
answers
52
views
Supporting Multiple Session States In Different Salesforce Tabs Blazor
I'm looking to get some input on the best way to achieve handling different sessions with multiple Salesforce tabs (classic but eventually moving to lightning) with server side Blazor.
I was tasked ...
0
votes
1
answer
35
views
Presence of Session State Cookie causes app to crash
I have an Umbraco 9.4.3 site (.NET5.0) which is using Session state, as configured by Umbraco. The app starts normally then writes a value to Session state in a controller method, which causes a ...
-2
votes
1
answer
41
views
Assign a custom key to a session in c#
I'm building a .NET 6 Core MVC Application In which I want to create a session whose key is "customer".
And then I want to check on each page whether that session is valid or not. How can I ...
0
votes
0
answers
6
views
Why does XAMPP Sessions only work with autostart set to 1 [duplicate]
I can only get XAMPP to work with PHP Sessions whenever the php.ini setting auto_start is set to 1. Does anyone know why this is?
; Initialize session on request startup.
; https://php.net/session....
0
votes
1
answer
65
views
Sign-in out clearing the session data
I have this link to Logout. How can I logout clearing my session
The current session needs to be cleared/abandoned when user clicks sign out. Then direct user to the log in page(a URL is given ex., ...
0
votes
0
answers
21
views
Developing a PWA where the Session ID issued by the User (Trusted). In the same PWA, we have a 3rd party PWA. How can the session persist across?
The PWA App access is based on the user credentials passed from the User's Mobile App (where our PWA App is being exposed within the i Frame) and the two parties are contractually bound trusted ...
0
votes
0
answers
74
views
ASP.net MVC - Losing Session State
I have an MVC page (.net 4.7.2). That page has a partial view. The partial view contains an iFrame to a third party.
[MVC Page [Partial View [iFrame to third party]]]
A user will interact with a ...
0
votes
0
answers
50
views
session changes are losing when request ends in react and nodejs
Hi am trying to implement authentication using node js sessions in file mainLoginArea.js i am calling a function goButtonClicked which helps user to sign in by calling an api from http://localhost:...
0
votes
0
answers
63
views
Getting exception "Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements" in the SQL Server session database
We are getting the below exception in the SQL Server session database. (SQL OLTP state)
System.Web.HttpException (0x80004005): Exception of type 'System.Web.HttpException' was thrown. ---> System....
0
votes
0
answers
21
views
Regenerate session id problems to expect
Im reading session_regenerate_id() and also the warning. Unfortunately it is not very clear on the workings and user experience.
What is against regenerating the session id and why is this specific a ...
0
votes
0
answers
123
views
Blazor WASM standalone project reauthentication for multiple browser tabs after logout
I have implemented authorization with JWT auth on our blazor WASM project. All was well - logging in and logging out...until
Scenario:
I noticed that if I duplicated my 'logged in (authenticated ...
0
votes
0
answers
27
views
How can I add values from a textbox to PHP with a custom key when a button is pressed without overwriting the existing array
I have a textbox within a HTML form. I'm trying to get PHP to add the value of that textbox to a PHP array as a key with a value of something else (for example, the word "bob"). The array ...
0
votes
1
answer
416
views
Modify Checkboxes based on changes in Streamlit
I wanted to create a checkbox which checks all other checkboxes if checked and if the checkbox is unchecked that all other checkboxes also get unchecked.
For example:
Clicking on “all” should be also ...
0
votes
1
answer
99
views
Asp.net performance issue when storing sessions in Redis
In converting from storing sessions in SQL to instead storing sessions in Redis, we are seeing a major performance issue. I hope you are able to give us some hints on what could cause this.
The ...
0
votes
0
answers
91
views
Redirect to Home page after 5 seconds of inactivity on privacy page in .NET Core MVC using sessions
I want that if anyone goes to any other page other than "Home" page and the user is inactive for 5 seconds then the user is redirected to the Home page in .NET Core MVC using Sessions
1
vote
2
answers
700
views
Save data to sessions long term in Laravel Livewire?
I have a social network and want to store user interests likes/dislikes in a session since there are many subpages where I need this data and I want to avoid querying the database for that on every ...
0
votes
0
answers
132
views
ASP.NET Core Session state is changed any node
We use a DistributedSqlServerCache and load balance for session state in web farm, so when set session and get session if change node or server would not read session,
Create table in SQL:
SET ...
0
votes
1
answer
108
views
IIS session timeout occurs randomly - due to error in sending email
So let me explain the situation. Our asp.net mvc application is running on Windows server 2012 r2 and IIS 8.5.9600.16384. Now randomly user session is lost 4/5 times a day although timeout is set to ...
1
vote
1
answer
114
views
How to Implement AWS Redis Session in Angular app
I want to implement AWS redis session in Angular app to store login token in session key that can be used across pods,
I am using sessionStorage currently but need to use AWS redis session
Can anyone ...
0
votes
0
answers
89
views
Vaadin 8 to Vaadin 14 migration - Session Handling with MprUI
I need a support on the issue below
As per the training video for Migration https://vaadin.com/learn/training/v14-migration-mpr, I did use MprUI and created static methods for the eventBus and trying ...
0
votes
1
answer
198
views
In ASP.NET Core 2.1, why SSO (using OpenID connect) not working with 2 pods. However it works fine with one pod
Asking this question here after doing quite a lot of research on OpenID Connect mechanism including authentication DLLs sessions and cookies in .NET Core. Hope experts like you will be able to help me ...
0
votes
0
answers
199
views
Why my session return null when I run on server but with postman it is working fine
startup.cs
services.AddMvc().AddSessionStateTempDataProvider();
services.AddSession(options => {
options.IdleTimeout = TimeSpan.FromMinutes(180);//You can set Time
...
0
votes
0
answers
57
views
Is ASP.Net Core session state reliable enough to store a critical token?
I am trying to implement a read-only demo mode into my application that allows someone to login as an existing user but doesn't allow them to persist any changes.
I have the functionality working but ...
0
votes
0
answers
14
views
Service WSGI intermediated voice clients with multiple session processes?
Imagine you had to write websites restricted to a single URL to receive a text message from your users, with only their IP address to identify them. Your website responds with a text message. That's ...
0
votes
0
answers
69
views
When adding new record to the dataframe it convert the data type into object
i have a streamlit app that read csv file and allow the user to add new records to the existing records.
The problem is that once the user add the new record the data type of the fields is converted ...
1
vote
0
answers
104
views
Service API session vs Web UI Session
Little Background:
I have both ASP.Net MVC Service API and WebUI project written in C# under same solution.
And I am using SQL Server Session mode. (FYI, all sessions are stored and looks good to ...
0
votes
0
answers
52
views
Can I use MySqlSessionStateStore and ActiveDirectoryMembershipProvider together?
I am trying to add MySqlSessionStateStore to a asp.net site I am working on that already uses ActiveDirectoryMembershipProvider. With just ActiveDirectoryMembershipProvider it will load the login page ...
0
votes
0
answers
91
views
Base Exception: Exception of type 'System.OutOfMemoryException' was thrown
The below error is getting logged only in the production environment and unable to replicate locally. No clue from where this error is raised. The error logging system is unable to find the screen/...
0
votes
0
answers
28
views
using synchronized word as part of my automation tests running in parallel
I am running my tests in parallel for testing a system which cannot hold the same user over multiple pages which lead us to disconnect the other session, I am using testng.xml file which allow me to ...
0
votes
0
answers
36
views
what's happening to my session? nothing with chrome devtools
a very strange thing. Years developing web sites using asp.net and ajax, this is my first time I face such a problem.
I have a webservice with methods having enablesession set to true in order to let ...
0
votes
1
answer
459
views
ASP.NET Session Locking
I've just discovered that ASP.NET MVC controllers 'lock' the session when each call to the controller is made. So, if your call takes 1 minute to complete, then all calls get queued up until that 1 ...
1
vote
2
answers
62
views
How to save a list of "divs" to sessionStorage and display them when the user reloads the page?
I have an HTML page as follows:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" ...
0
votes
0
answers
501
views
ASP.NET Core session is null after making call request from Angular
I have an ASP.NET Core Web API as back-end and Angular app as front-end. Part of my login process I set user-detail to ASP.NET Core session to be able to check if the session is expired or not using ...
0
votes
1
answer
172
views
No overload matches this call. TypeScript error while using `next-connect` & `next-iron-session`
I have a project using next-connect & next-iron-session.
next-connect by default uses <NextApiRequest, NextApiResponse> & I'm using <NextIronRequest, NextApiResponse> where
export ...
0
votes
2
answers
487
views
Injecting a SessionScope bean in Controller not working
I am having trouble setting an attribute value ie. shortname to a SessionScope bean in Spring Boot.
Here is my class:
import java.util.Map;
public class LdapUser {
private String ...
0
votes
0
answers
55
views
Sometimes the SESSION loads, sometimes not
I request your help - I don't have any ideas left...
My script performs following steps:
login.php -> Authenticate the user. If positive the session is set with user-data (user-id, roles, ...), if ...