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

Redirected to second app but jsessionid is same as that of first app

I am working on a use-case where I have to redirect between JSF applications deployed on different servers. Kinda login app to main webapp. Initially I have deployed both of these apps on the same server and running them under same domain…
user2918640
  • 473
  • 1
  • 7
  • 25
0
votes
0 answers

How to use infinispan as a remote session repository for Cipango Servlet engine?

I need to use infinispan in a remote node for keeping session states. how can I use it with Cipango? I know that jetty can use it, but what about Cipango? do I need additional configuration in Cipango? I have seen some classes in Cipango source…
Milix
  • 107
  • 10
0
votes
1 answer

Sitecore config patch update sharedSessionState to mongo

Trying to apply the configuration patch to update the shared session state to use mongo per doco…
Nil Pun
  • 17,035
  • 39
  • 172
  • 294
0
votes
1 answer

Preventing users from performing actions which are more than 15 minutes apart

I want to prevent users from performing actions which are more than 15 minutes apart, but I don't really need the Session object for saving any data. Is setting SessionState timeout to 15 minutes enough, although I don't user the Session object in…
Oren A
  • 5,870
  • 6
  • 43
  • 64
0
votes
1 answer

Manage session state across redirects

I have an AngularJS single page app which works with an IdentityServer3 SSO service for authorisation / authentication and a .NET Core WebApi service layer that provides access to data and business logic. Normally, after the user logs in, the…
0
votes
2 answers

Why would Session_Start keep reloading without firing Session_End

I am having trouble tracking down why the session keeps restarting in a web app. I have placed code in both the Session_End or Application_End procedures to try and track what is happening, but neither of these two procedures are reached in code…
David DIlley
  • 31
  • 10
0
votes
1 answer

Laravel : logs out after ajax post request

Seems there is a bug with Laravel. recently i changed my session driver from file to database and noticed each time an Ajax post request is send then i get logged out . here is an issue somehow similar to mine. if remember me is checked then i don't…
alex
  • 7,551
  • 13
  • 48
  • 80
0
votes
1 answer

All session state variables and view state used after executing a query in sql are not available , why?

In an MVC project, trying to access one of the session variables in the View page. var command = new SqlCommand(query, conn); conn.Open(); Session["username"] = "swe12387"; command.ExecuteNonQuery(); In the above case, the value of the Session…
Gokul
  • 788
  • 2
  • 12
  • 30
0
votes
3 answers

Enable/disable button using javascript

I am trying to build a simple html app getting some basic customer information and storing the information in database. After capturing the information, when the customer logs in his profile, he can see 3 buttons. button 1= print button 2= delete…
tourist
  • 11
  • 4
0
votes
1 answer

sessionStorage and sticky sessions

I was looking for some clarification really. Looking at the W3Schools documentation on localStorage and sessionStorage, they write: Local storage is per origin (per domain and protocol). All pages, from one origin, can store and access the same…
George Grainger
  • 172
  • 2
  • 15
0
votes
0 answers

Session Expirated no detected in Logout

I want to redirect to login.php when my session expired , i test with two pages , i logout in the first and the second will detect the expired session and also this page disconnected . i do this : in my index.php i have :
hatane
  • 36
  • 6
0
votes
1 answer

How to kill asp .net session explicitly before timeout when user logs out from portal

In my application default session time-out is 20 minutes. When the user logs out from the portal before time-out is there any way to kill the session explicitly. The session state is configured to "inproc". Application is launched on a portal and…
0
votes
1 answer

PHP site testing with cURL and _SESSION

I am trying to do my very first site regression testing. The site backend consists of several PHP scripts. So I've am just calling all PHP files, one after another, using cURL, with various valid and invalid input and check the result. All works…
texnic
  • 3,959
  • 4
  • 42
  • 75
0
votes
1 answer

Sharing session with session state server

I'm trying to setup two Windowz boxes (win1, win2) between a varnish round robin loab balancer. Session state for the application is both configured as "State server" pointing on a third machine (x.y.w.z). Calling telnet x.y.w.z 42424 is ok from…
lrkwz
  • 6,105
  • 3
  • 36
  • 59
0
votes
2 answers

how to set session for more than one hour in asp.net website

i am trying to set session for more than hour in asp.net website. i am using iss7 for run website. i am also set the session state timeout 3600 in web.config but with in 10 min session expired also i am trying to setting in iis server but cant done…
1 2 3
99
100