session-state

ASP.NET Session State Performance Benchmarks

微笑、不失礼 提交于 2019-12-03 05:51:05
I have found a lot of great information comparing InProc, StateServer, and SQLServer for ASP.NET state management, but I can't seem find any performance benchmark comparisons. It is clear that InProc is faster than StateServer which in turn is faster than SQLServer, but it isn't clear how much faster. I realize that it's going to vary greatly by application and environment, but having a relative idea of how they compare would be valuable. Do you know of any benchmarks that have been performed that you could share? or have any personal experience with this? Thank you! There's a good benchmarks

asp.net session state mode “SQLServer”

怎甘沉沦 提交于 2019-12-03 05:40:48
"My website is LIVE. And this problem is related to configure session timeout on LIVE server and not in localhost." I have a problem with session expiring too soon. link in 2-5 minutes only. I tried lot of things and at last decided to store the session in "SQL Server" mode in my web.config file i have following coding: <sessionState mode="SQLServer" cookieless="false" timeout="45" sqlConnectionString="data source=xxx.xx.xx.xxx;uid=xxxxxxx;pwd=xxxxxxxx"/> and i have all the tables required in ASPState table on server. You can see it from the image below. But i when i run my application, its

Pros and Cons of using ASP.NET Session State Server (instead of InProc)?

此生再无相见时 提交于 2019-12-03 05:34:36
Before I start using Session State server for the benefit of making session state more robust in my apps compared to InProc state, I'd like to find a list of Pros and Cons for evaluation. Update 1 : Also about surviving application pool recycles? Update 2 : What about longevity of sessions and their endings? Here's the canonical analysis of the pros and cons of your three options, from Rob Howard's ASP.NET Session State article: In process . In process will perform best because the session state memory is kept within the ASP.NET process. For Web applications hosted on a single server,

ASP.NET MVC Session vs Global vs Cache

不打扰是莪最后的温柔 提交于 2019-12-03 04:38:35
问题 I have an application that was written in vanilla ASP.NET that I would like to port over to ASP.NET MVC. I, however, am confused about the right place to persist objects. I need to persist for a couple reasons: I would like all to have a single database connection, wrapped in a "repository" or "manager" style object. Each user has a user object that needs to be saved on a per-session basis. Normally, I would say that #1 would be saved as a static item in the Globals.asax that can be hit using

Android — How to properly handle onPause/onResume methods?

为君一笑 提交于 2019-12-03 03:53:38
I have an app that starts playing sounds and begins/resumes gameplay in the onResume() method, but what I'm noticing is that if my app was the last run application when I put the phone into standby (screen off), and I just press the Menu button to check the time, then the phone starts playing the game and sounds in the background (the app isn't actually visible, only the screen with the date/time is, yet onResume must have been called in my app). What am I to do here? Is there a way to discern what is reactivating the app, and then add a conditional statement that only starts the game when the

IE double postback hangs IIS 7 in Integrated Managed pipeline mode when session is accessed

荒凉一梦 提交于 2019-12-03 03:47:11
问题 Here's my environment: IIS7.5 on Win 7, .NET 4, App Pool Integrated web.config <?xml version="1.0" encoding="UTF-8"?> <configuration> </configuration> Test.aspx <%@ Page Language="C#" %> <!DOCTYPE html> <script runat="server"> protected void OnAction(object sender, EventArgs e) { int count; status.Text = (int.TryParse(status.Text, out count) ? count + 1 : 0).ToString(); Session["test"] = count; } </script> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>IIS Session

What are the benefits of a stateless web application?

假装没事ソ 提交于 2019-12-03 03:08:00
问题 It seems some web architects aim to have a stateless web application. Does that mean basically not storing user sessions? Or is there more to it? If it is just the user session storing, what is the benefit of not doing that? 回答1: Reduces memory usage . Imagine if google stored session information about every one of their users Easier to support server farms . If you need session data and you have more than 1 server, you need a way to sync that session data across servers. Normally this is

Is it necessary to create ASP.NET 4.0 SQL session state database, distinct from existing ASP.NET 2.0 ASPState DB?

ぃ、小莉子 提交于 2019-12-03 01:57:07
Is the ASP.NET 4.0 SQL session state mechanism backward-compatible with the ASP.NET 2.0 schema for session state, or should/must we create a separate and distinct session state database for our ASP.NET 4.0 apps? I'm leaning towards the latter anyway, but the 2.0 database seems to just work, though I'm wondering if there are any substantive differences between the ASPState database schema / procedures between the 2.0 and 4.0 versions of ASP.NET. Thank you. There was no quick answer on this from anybody, so I did some digging. I generated an ASPState database using the aspnet_regsql.exe tool

What are the different approaches for Java EE session replication?

折月煮酒 提交于 2019-12-03 01:05:37
I am working on a project that requires really high availability and my team is currently working on upgrading some infra-structure and software for a future release. One of the features we would like to enable is to have session replication across not only different servers, but ideally across different sites (geographically spread). Is that possible? What are the approaches? For what I have seen so far, to enable session replication, the usual vendor approaches are either one of these: Serializable session attributes < distributable /> tag in the web.xml with additional configuration in

ASP.NET MVC Session State

本秂侑毒 提交于 2019-12-03 00:23:19
I am currently trying to create an upload control with progress bar in MVC using jquery. I keep running into a problem however in that mvc doesn't work in parallel threads? When I upload a file and show the progress during upload from JS performed through several callbacks to server, I am trying to get information about current upload state but answer from server comes back only when the file has been uploaded. Do you know of any way to get session state queries in MVC constantly or when request is performed ? Would really appreciate some help and I am sure others would if someone knows the