When Session objects don't update

This is weird. I did that little HttpHandler that generates images in the simple NewsBlog app. It saves a sequence of characters to Session so the (hopefully not blind) user has to type in the stuff on the graphic and confirm they're a human.

On my dev machine, works like a champ running it from VS. I deploy it to the server, and it saves the first set of letters to Session, but subsequent calls do not. Here's the code from the handler...

    public void ProcessRequest(HttpContext context)
    {
    ...
        context.Session.Remove("antispamimage");
        context.Session.Add("antispamimage", s.ToString());
        context.Response.End();
    }


Why do you suppose it doesn't work right on the server?

10 Comments

Comments have been disabled for this content.