AJAX and HttpSession

How to handle Session in AJAX based application.

Lets assume that i have a page that dynamically loaded some section in that page when triggering some action (i.e onClick of a button). At that time we are Instantiate the XMLHttpRequest object and open a connection to the particular URL to do some database actions and populated the data into that section. If the main HTTPSession expired, Still AJAX goes to the server and respond. Since AJAX works behind the page.

[479 byte] By [cybervink2000a] at [2007-10-3 5:22:38]
# 1

Hi,

There are two blogs that you might find useful here.

Greg Murray has blogged on one solution to saving state on the client:

http://weblogs.java.net/blog/gmurray71/archive/2005/05/storing_secure.html

Brad Neuberg goes over different options available to Ajax:

http://codinginparadise.org/weblog/2005/08/ajax-tutorial-saving-session-across.html

-Larry

LarryFreemana at 2007-7-14 23:29:41 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...