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.

ASP.NET session state supports several different storage options for session data. Each option is identified by a value in the SessionStateMode enumeration. The following list describes the available session state modes:

  • InProc mode, which stores session state in memory on the Web server. This is the default.
  • StateServer mode, which stores session state in a separate process called the ASP.NET state service. This ensures that session state is preserved if the Web application is restarted and also makes session state available to multiple Web servers in a Web farm.
  • SQLServer mode stores session state in a SQL Server database. This ensures that session state is preserved if the Web application is restarted and also makes session state available to multiple Web servers in a Web farm.
  • Custom mode, which enables you to specify a custom storage provider.
  • Off mode, which disables session state.

You can specify which mode you want ASP.NET session state to use by assigning a SessionStateMode enumeration values to the mode attribute of the sessionState element in your application's Web.config file. Modes other than InProc and Off require additional parameters, such as connection-string values as discussed later in this topic. You can view the currently selected session state by accessing the value of the HttpSessionState.Mode property.

Check more details in the follow link - Session-State Modes

1902 questions
0
votes
1 answer

Validate a user requests between servers

Background: I am creating a file server. I am using Tomcat behind Nginx reverse proxy. I have a main server which host the UI and lots of edge servers where I hope to store user uploaded files and serve them back. It's a private file storage so only…
printfmyname
  • 983
  • 15
  • 30
0
votes
1 answer

How to Save state of user Login using air?

i am building application using air, jquery, and sqllite as database local. Now, i build module for login that reads from database. But, i am confuse how to save state of user login to the application. For example if we use PHP, we can save state of…
Sthepen
  • 203
  • 2
  • 6
  • 15
0
votes
2 answers

User state in a big (high traffic) application

Assumptions - There are 4 servers sitting behind a reverse proxy which acts as a load balancer Load Balancer is purely load balancing and sends a request to any of the 4 servers depending on their current load Users need to be authenticated for…
vjjj
  • 1,019
  • 3
  • 10
  • 35
0
votes
1 answer

Android Application state

I am a web developer and starting to learn android development. I want to authenticate to a custom server which responds with a user object and a JWT (JSON web token) for further authentication. I know that I need to use intents to show the login…
Dirk
  • 3,095
  • 4
  • 19
  • 37
0
votes
1 answer

Masking several APIs behind a common API for an end user

Note: I would like to start by stating that the nature of this query is quite general as I am exploring ways to implement something as opposed to trying to solve a specific coding issue or problem I am working on a middleware project that sits…
MurtazaM
  • 23
  • 5
0
votes
1 answer

Python Flask sessions data across clients is not separating

I am building a chat bot application on the web using Flask hosted on pythonanywhere.com However, when more than one person chats with the bot at the same time, their questions interfere with one another and the bot answers in the context of the…
jcp
  • 841
  • 1
  • 9
  • 14
0
votes
1 answer

CodeIgniter App - How to update session data of all devices if user information data was changed from another device

So I have come across a problem. 1. I log into website using my user information on my desktop. 2. My sessions are set within the desktop. 3. I log into website using a smartphone. (Now there are 2 devices logged in.) 4. My sessions are set…
radiantMemory
  • 39
  • 1
  • 10
0
votes
1 answer

How do I properly prevent mulitple active sessions in ASP.NET Identity 2.2.1 without affecting password change behavior?

I have a requirement to eliminate multiple active sessions from being allowed on our site. It is my understanding that to do this you can manipulate the validateInterval parameter of the OnValidateIdentity property of the…
user2564788
  • 55
  • 1
  • 10
0
votes
0 answers

Sharing Sessions on different Asp.Net pages of different Applications in same domain

Basically we are working on various web applications which are updated according to the time needs and Now the situation arises are as follows:- We have one Product based website which consists of several webpages which are belongs to different Web…
0
votes
1 answer

Sitecore: Shared session on CM server

This page on the Sitecore documentation site notes that "Shared session state is not supported on content management servers" but it does not mention why. Does anybody know why that is? We have a test-setup with two servers where one server is a…
ebug
  • 451
  • 3
  • 18
0
votes
0 answers

Session ending before web.config timeout

I have an ASP.NET MVC application for which I've configured sessions in the web.config as follows: