I have a web site that uses JQuery AJAX. With this JQuery code
$.post("/ajax/getsomedata.aspx", {'id': id },
function(data)
{
dosomething(data);
}
);
When I run this with cookieless="false", id shows up in Request.Form. When I set cookieless="true", id is no longer in Request.Form.
UPDATE, What I did
I added...
Here's the problem we facing.
In a hosted environment setup, we're hosting the same project multiple times. We currently manually specify a Path in the forms config section of our web.config. However, to smooth out our deployment process, we'd like to set the Path depending on the Virtual Directory name.
Is there a way for us to dynami...
I would like to have a very lightweight ASP.NET MVC site which includes removing as many of the usual HttpModules as possible and disabling session state. However when I try to do this, I get the following error:
The SessionStateTempDataProvider requires SessionState to be enabled.
I've disabled session state in web.config:
<sessionSt...
We currently have an ASP.NET Web Application running on a single server. That server is about to hit the danger zone regarding CPU usage, and we want to deploy a second server.
What would be the best way to handle Session State?
We currently run InProc. But that's not an option with 2+ servers, as we want to exclude a single server fro...
hi,
I would like the data that i enter in a text box on pageA to be accessable on pageB
eg: User enters their name in text box on page A
page B says Hello (info they entered in text box)
I heard this can be accomplished by using a session but i don't know how.
can someone please tell me how to setup a session and how to store data ...
I'm getting this fault intermittently.
I found this link which summarises fairly well what I was able to find on the Google:
http://www.wacdesigns.com/2009/02/03/session-state-has-created-a-session-id-but-cannot-save-it-because-the-response-was-already-flushed-by-the-application/
Basically it says you can try setting the web config se...
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 ...
We have a .net asmx web service that gets called from javascript (using ASP.Net AJAX), and requires access to Session.
[WebMethod(true)]
public string DoSomethingOnTheServer() { }
We're running into the problem of session being locked on a read/write request. Is there any way to mark a web service method as requiring read-only access...
The reason I ask this is recentlydesigned an application , initially wanted to use no session state to keep things simple, but eventually succumbed to the ease of the session state idea for storing state. I was aware that moving to a web farm solution would involve configuring session state to run in sql. However I had never run across a...
One of my methods in an NUnit test checks a Session-State variable :
if (Sesssion[variableName] == null) ...
and the NUnit test is failing with err:
System.Web.HttpException: Session
state can only be used when
enableSessionState is set to true,
either in a configuration file or in
the Page directive. Please also make
s...
We have two industrial controllers that are used to control critical systems. The idea is that on failure of one controller, the other controller will automatically take over. To ensure the swap over is seamless, each the standby controller must mirror the state of the online controller at all time.
We have a solution, which is poorly c...
In ASP.NET a session is for the browser. But how can I create a session for a tab?
...
We have a current (legacy) PHP based website that is unlikely to be redeveloped for the next year or so, that acts as our main portal.
We would like to develop new applications in ASP.Net, and plug them into the current portal - but we do not want our website users to have to log in twice.
Whats the best way to share authentication sta...
I'm trying to implement the state pattern for a multi-page registration form. The data on each page will be accumulated and stored in a session object.
Should validation (including service layer calls to the DB) occur on the page level or inside each state class? In other words, should the concrete implementation of IState be concerned...
Does the same process apply for session state when a dll is placed in the bin as when placed in the GAC?
Or is there some type of esoteric change that take place under the hood?
I’ve got a test solution deployed to the bin directory of my sharepoint site that uses session state. I made sure that session state is configured in my web.c...
Today I've got confused with 2 issues related to the HttpApplicationState of ASP.net. My questions are as follows
If I use a StateServer for my session management (the out proc session management stuff that I want to use for my web garden deployment), is it safe assuming that the HttpApplicationState (I am accessing via System.Web.UI.P...
Does anyone have any information on how state is managed in Azure when you choose to have multiple instances? It seems like InProc would be worthless and you would have to have another state server instance, or use the datastore to store the users state across servers.
Or does it implement sticky sessions, so InProc is all you need...
I would like to have the session state in a separate process for my app, but I would also like to have some code run whenever a user's session is over. (changing a status string that indicates whether they are online or not and decrementing the online users count.)
If my session state is InProc in the web config, I can use the Session_...
This is a weird one, but hopefully someone can give me an idea here. I'm putting a few values into session in the Session_Start of the Global.asax in my app. Immediately after the Session_Start my base page's OnInit gets called and tries to use one of those Session variables.
The weird part is sometimes it works, and then after NO chang...
i'm trying to store some values in the Session from a Handler page, before i do a redirect to a WebForms page, that will pick up the Session values and pre-fill the WebForm:
public class Handler : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
...
context.Session["StackOverflow"] = "overflowing";
...