Hi,
I have several portlets in my application. If I open a url using window.open() method, the session id changes and causes an error in other portlets. If I don't open this url, everything works fine. But once this new window is opened, the session is cleared and the rest of the portlets throws an exception since some values are missin...
I am developing a shopping cart website.
The problem is, when I add product items to my shopping cart and another user in another computer browses the shopping cart, suddenly has my cart details!!.
We have our site on a web farm, hence session state is held in Sql Server.
This is the first time I am setting up SessionState on Sql Serv...
I'm having trouble getting Session State to work correctly in my ASP.Net application. I've set EnableSessionState="true" in all my <%@ Page %> directives but I still seem to get issued a different Session ID on every page.
I am using a Master Page which I can't find a way to specify EnableSessionState for (I assume if the Page using it...
Hi,
We have ASP.Net MVC Website which has < 200 users with long running sessions. Each user is expected to stay logged in for at least 6-8 hrs before logging out. The average session per user is expected to be less than 1 MB.
We are using the ASPState database to for session.
We want to put a restriction on the maximumm size of the tra...
I have a problem with accessing values in the session through pagemethods.
The example below demonstrates the problem in a simple form. There are three buttons on the page and each of these invokes a different pagemethod, that, in turn accesses what I would expect to be the same variable from the session. In fact the value returned is ...
I've noticed that a lot of sites don't bother anymore with work-arounds so users who have turned their cookies off can still get the same experience on the site. Has that problem just gone away in modern web development? Have we gotten to a point where nobody does it, so we don't need to bother?
...
In the following scenaio, how could I make use of AJAX to check if the session if is still active and then return the user to the login page?
The user logs in and starts working
The user disappears for 10 minutes
and the session times out
The user returns to their computer
and is still on the screen they were
on 10 minutes ago
The user...
Without going into whether this is a good or bad idea:
Is it possible to store a LINQ-to-SQL domain object in the ASP.NET Session, when the session is out-of-process?
[EDIT]
I'm currently getting the following error and asked this question because I suspect the LINQ-to-SQL objects:
Unable to serialize the session state. In 'StateServe...
Storing the entire session in a cookie has been standard in Rails for the last few years - is there an easy way to achieve something similar with ASP MVC?
By default, anything in Session / TempData is stored in memory on the server. In web.config this can be changed to an SQL Store / server-side cache. I'd like to be able to have these ...
I'm trying to figure out the size of a particular session state. On one of our heavy pages (lots of data in a table) it gets progressively slower. The issue is resolved by logging out of the system.
I've profiled the page looking for JavaScript memory leaks, but I didn't find anything. My next plan of attack is too look at ViewState an...
Ok, I'm very new to MVC so bear with me if I'm asking a ludicrously straightforward question. I'm trying to develop a project in MVC where certain controls on the view will keep state but are not actually part of the model. I want to display Asp.net Charts and xslt grids on a page based on the content of various dropdowns. The data for t...
I am storing an array of a custom serializable class in session on my site. When a page on the site changes, suddenly it renders them invalid, and tells me that it can't cast the type to it's own type. I assume the class version numbers are changing or something?!
I'd appreciate avoiding the "don't use session" answers, unless it's a ...
I have a problem in my project. There is an admin panel in my website. People can login with a username and password can edit website content. Sometimes a user can take up to 30-40 minutes to enter content, but the session timeout expires after only 20 minutes.
I tried to configure this in the web.config, for example:
<authentication m...
.NET's HttpSessionState using an "InProc" store seems to treat session variable key values as case insensitive. For example:
session["foo"] = 1;
session["Foo"] = 2;
Trace.Write(session["foo"].ToString()); // => 2
This behavior appears to be undocumented, so I'm wondering if it is simply a side-effect of the underlying session store me...
So i have a couple of custom Http Handlers for different file types. I have implemented the IRequiredSessionState marker, but still recieving context.Session as null?
Do you need to initialize the Session somehow?
...
QA and Dev enviroments work perfectly.
Handlers all implement the IRequiresSessionState marker.
Config File contains:
<pages enableSessionState="true">
and
<sessionState cookieless="AutoDetect" mode="InProc" timeout="20" />
IIS has session state enabled in application properties and Application is running in its own Application Po...
Since HTTP is a stateless protocol, when a client makes a number of requests to the server, how does the server uniquely identify a particular client's requests over a period of time say t1, t2, t3..
I browsed the web and came across terms like session id, URL rewriting and cookies. But it would be great if someone explains it in a bett...
Is it possible to use session cookies across browser sessions (specifically Internet Explorer). I would like a user to log in to my site and therefore get a cookie and when the user opens another IE process have that session cookie authenticate the user.
At the moment it is find if the user opens a new window or tab as this resides in t...
Which session mode in the following ,should i implement for my ASP.Net website?
1)InProc .
2)State Server.
3)SQL Server.
4)Custom.
...
I just finished watching Stefan Schackow's PDC 2009 session and he mentioned that he is surprised that people are still using Session State in ASP.NET. Session State is even used internally in ASP.NET MVC.
Having worked with a legacy application where everything is put into a "in-proc" session (even datatables!), I've seen session abuse...