session-state

ASP.NET Server Side Viewstate

I have read some approaches to storing viewstate on the server: Here is one Here is another But they are sort of complicated. I am looking for a way to persist an object without having to serialize it. I could use session state, but if a user opens more than one window, there could be overwrites of the object. Is there a simple solu...

Losing session state after close of a window opened with window.open

Currently we're opening a new aspx page with window.open. The window.open is in a javascript function (openNewWindow()) in the current aspx page which is called when an asp.net hyperlink control is clicked. The links are dynamically created on the page by our framework and so I'd like to avoid changing that functionality. The problem ...

Securely implementing session state and 'keep me logged in' feature

I would like to improve security on a current application regarding session management and I want the users to be logged in until they explicitly logout. How does one implement that securely? Keep session information in database, like sessionid, ip, useragent? Please provide the requirements, possibly a database layout, do's and don't...

Allowing Session in a Web Farm? Is StateServer Good Enough?

First of all to give you a bit of background on the current environment. We have a number of ASP.NET applications, all of which use session for certain aspects. We are "Load Balanced" over multiple servers due to traffic levels, however, our load balancing is set to use "Sticky Sessions" as currently all web applications are set to use...

Session state provider and global.asax not interacting properly?

I'm experimenting with creating a crude, proof-of-concept session state store provider in ASP.Net. But I've got a problem and I'm not sure what to do about it. The website works properly when using the InProc provider. The Session_Start in global.asax is called on session creation as it should. But not if I implement my own provider....

Any suggestions on how to session proof a website?

This might be a very odd question, but some hints or guidelines will be very helpful. We want to "session proof" our web site, basically make sure that two different sessions generate the same link structure (e.g. Both user-a and user-b will get the same links in the same web page). The reason behind this test, is that our web site i...

How can you view ASP.NET Session State in a different platform like PHP?

Say I have an ASP.NET webpage and I also have a PHP Blog/BBS/Website. I want all logins to be done via the ASP.NET webpage. The ASP.NET Session State is stored in SQL. Is there any way I can read/decode the Session State from PHP to tell if a user is logged on if I have the Session State cookie? ...

Does Adobe AIR for JS support some sort of non-persistent data container?

For a project I need to develop an app in Adobe AIR, I choose for the HTML/Ajax version. For now the project is quite small, and contains a login part, and a details part. What I would like to do is on app launch show login.html, and if that was succesfull show/browse-to details.html . My question is if there is some quick and dirty w...

C# + asp.Net + Custom Sybase SessionState provider + ReportViewer = some reports crash.

I'm using a Custom Session State provider to store our session data in our Sybase Database. It's working well, but some reports in the report viewer control consistantly cause the following crash. System.Web.HttpException: The session state information is invalid and might be corrupted. Generated: Thu, 02 Apr 2009 20:21:47 GMT System....

how to simulate session end event using sql session state in server farm

The session end event is not available when using SQL session state. We have an existing appication that uses this event, but we need to switch it over to SQL session state so we can set up a server farm for the application. We were hoping to use "sticky sessions" on the load balancer so we could keep using inproc session state, but were...

User authentication without Session state in ASP.NET

One of the requirements proposed for an ASP.NET application is that we have Session state disabled globally. (This is not negotiable.) Another requirement is that we have some means for user authentication. I'm thinking of using ASP.NET's membership provider model. Is it possible to have user authentication without Session State? The ...

How to capture session state

I have a asp .net master page application and one content page has a number of controls on it. I want to store the content/state of those controls in the session state whenever a user navigates to another content page. My question is, how do I know when to capture the control state? Is there an event of some type I can use to trigger ...

Loses session state in iframe, but not in pop-up window

Hi all We're developing a web shop, and process payments with a third party UI. We have chosen to show the payment UI inside an iframe inside out check-out page, even though (we now realize), the payment solution provider recommend using a top-level window. Now what happens is that in IE7/IE8, the payment UI loses session state on the...

Asp.Net MVC and Session

I'd like to construct an object in different steps in an asp.net mvc application, each step being a different page. The sort of thing you'd store in Session in a quick Web.Forms application. Reading about it, Session doesn't seem to me as something very asp.net MVC'ish. However I can't really think of other alternatives to this situatio...

store HttpContext.Current.Request.Files in session variable

Hi, I want to store files uploaded by user in session variable,so that i can use it from any page i want in my project.i am retreiving files from statement: httpFileCollection uploads=HttpContext.Current.Request.Files; how can i store and retrieve this in session variable?? Thanks in adavnce ...

Is it possible to list all current sessions (INPROC) in IIS6?

I would like to enumerate the current active sessions for my application. I would like a page that shows information like current number of active sessions, when they will expire, maybe even contents of session. It seems like all this information would be available using the SQLServer mode of sessionState. Is there anyway to query...

ASP.NET Masters: What are the advantages / disadvantages of using Session variables?

I've done a search on this subject already, and have found the same data over and over-- a review of the three different types of sessions. (InProc, Sql, StateServer) However, my question is of a different nature. Specifically, what is the advantages/disadvantages of using the built in .NET session in the first place? Here is why I am ...

IIS Session State

Here's a story problem: I have website set up in IIS 6.0 (Win 2003) and has checked the "allow session state" setting the configuration in IIS. If a user navigates directly to a static html page on my site, (not an asp or aspx page), does IIS start a session for the user or not? ...

Linq to SQL, Ajax postbacks, and page state in ASP.NET

This has to be a frequent question, but not on SO yet, so it seems. I am using Linq to SQL for an application that allows a variety of data changes to my in-memory model, and the changes will then get placed into a queue for asynchonous processing. So, I am not worried about updates (yet). Changes to various parts of the data can be made...

How to share session variables in two different web applications?

I have two different web applications: Phase I and Phase II. Phase II has a dependancy on phase I for some session values. I want to run these two applications with sharing session variables. I don't want to use state server to store session. I have used inproc session and I want to share this session together. How do I achieve this...