session-state

Keep locale in session or send along with form?

I'm refactoring a CMS I build. The CMS has the ability to edit pages based on the chosen locale. I keep this chosen locale in a session while the user of the CMS browses through pages they like to edit. Now, my question is: If a user is editing a page and wants to submit changes, do you feel that I should include the locale as a hidden ...

ASP.NET session state and multiple worker processes

I need to understand something about ASP.NET session state, as it applies to IIS 7 and ASP.net 3.5. If an application is configured to use in-process session state, will that work OK if there are multiple worker processes? In other words, do worker processes share session state? The default configuration for IIS 7 is to use in-process ...

Refeshing a page to a new state

I have a written a blog using php and mysql which has a login feature. When you are logged out and hit back it should not show the features of a member since you are no longer logged in. How do I correct it so that when a user is no longer logged in and hit back button, the previous page should be in the state before he logged in? ...

Switched from inproc to SQL Server gives me SQL timeouts (no connection max pool size, typed datasets)

Hello everybody. Here is my situation: I have a web and database server (SQL Server 2005) in a LAN. The webserver(iis6) has several application pools and sites run fine with asp.net session inproc. both servers run win 2k3 Now I switched from inproc to SQL Server and I get a lot of SQL timeout expired messages. But only from one web ...

SQL server state management on a 3-tiered architecture

Folks, Has anyone came across a scenario where they have used SQL server state management on a 3 tiered architectuere ? How should one implement (SQL server state management) without bypassing the middlelayer. Thanks... ...

How to set the ASP.NET SessionState read-write LOCK time-out?

I have a WCF web service that uses ASP.NET session state. WCF sets a read-write lock on the session for every request. What this means is that my web service can only process one request at a time per user, which hurts perceived performance of our AJAX application. So I'm trying to find a way to get around this limitation. Using a re...

Can I set the connection string for custom session state mode in global.asax file?

Can I set the connection string for custom session state mode in global.asax file? I cannot hard code the connection string in the webconfig file. ,I will get the connection string at runtime,Can i set the connection string for custom sessionmode/sqlserver session mode in the global.asax file(like in application statrevent, or aquirerequ...

Enabling Session State in SharePoint 2010?

I have a web service built for SharePoint 2007 that I am trying to port to SharePoint 2010. This web service is dependent on session state to function properly, but so far, I have been enable to get session state to work at all in SharePoint 2010. This web service runs as its own web application under t he /_vti_bin virtual directory. ...

Enable / disable session state per controller / action method

We are building an ASP.NET MVC application which will be deployed behind a hardware load balancer that supports, among other things, caching. Our proposal is to manually define which URL patterns should be cached by the load balancer. This will be quite an easy process for us as we have 'catalogue' pages which are relatively static, the...

Session State expiry in ASP.NET

I am creating a content management system but there is one problem. What I want to do in my website is that when a user opens the website a new sessionid is created for that user, and when the user closes the website, the sessionid is cleared. How can I can do it? ...

Retrieving active session information from IIS 7

I'm running several ASP.NET web sites with InProc session state and I would like to retrieve the number of active sessions per web site and hopefully any details around each session (eg client connection details). My end goal is to be able to see who is connected to the web site so that I can notify them when deploying an update. Is th...

Where and which data to save into session on an ASP.NET MVC 2 application?

I am having some trouble saving the state of my current view. Currenly I have several selectlist calling their own Action method on the controller that returns the Index view with the filtered model based on the values of the selectlist. I have also written a little FileResult action that creates a csv file based on the current model. ...

What are the Best Practices For SQL Inserts on Large Scale in reference to ad impressions?

I am working on a site where I will need to be able to track ad impressions. My environment is ASP.Net with IIS using a SQL Server DMBS and potentially Memcached so that there are not as many trips to the database. I must also think about scalability as I am hoping that this application becoming a global phenom (keeping my fingers cros...

State Server Session Mode

Hi All, Our project is designed to be hosted in two servers. One server will have the App Tier which contains the various database and file system access logic, and the other server will host the Web tier which will mainly contain the presentation logic. The presentation layer in the Web Tier will connect to the App Tier through a Web...

Passing session variables to different application on different server

HI, We have two applications to be hosted on two different servers. The applications will be built in .NET3.5 and hosted using IIS. We want to share the session variables between the application which will be on different servers. Is there some way through which we can achieve this. ...

Sql Server Mode for Session state

Hi All, I am using Sql Server mode to store the session information of the application. After adding session information I am able to see the data in the ASPStateTempSessions table, but when I try to retrieve the same information of the stored sessions Iam not able to retrieve the information from the other application. How can I acces...

Is it worth to save the session state information in httpcontext or request cookie in load balancing environment?

In load balancing server environment is it possible to maintain the session state in httpcontext or request cookie. Does it cause any performance issue or security issue? ...

Persisting data in cookies - ASP.NET

I find persisting data in the Session really useful, however, by nature it expires when the browser is closed (cookie with expiry set to clear at end of session). I especially like how it is written transparently so i dont have to worry about auth-ing the user or generating any unique id's. My question is, is there something in the .ne...

ASP.NET MVC Object locking mechanism

Hi, I'm working on a ASP.NET MVC 2 web application that lets users edit parameters on a simulation and launch it. Once a user starts editing a specific simulation, it must be inaccessible to other users. Is there an easy way to achieve that goal in ASP.NET MVC? My first idea was to put the logged on user's identity in the Application ...

When is Session_End() called in ASP.NET MVC ?

I have configured my Web.Config file as follow in a ASP.NET MVC 2 project: <sessionState mode="InProc" timeout="1"/> And added the following in Global.asax.cs: protected void Session_End(object sender, EventArgs e) { System.Diagnostics.Debug.WriteLine("Session_End"); } protected void Session_Start(object sender, EventArgs e)...