Keep session taglib ver. 1.1

    Custom JSP taglib lets presents a very simple method that can be used to keep a session alive. Sometimes it takes to long to fill out a form or the user can leave the application window opened and comes back after a while. In other words the session could expire before the next request from the page will come in. This taglib lets your JSP (Coldfusion) page provide the permanents requests to the server directly from the client.
Technically, taglib adds an invisible image to the page and uses JavaScript for the image source permanents update (automatically generates update requests by the timer). For example:
 


<%@ taglib uri="taglib.tld" prefix="k" %>

<k:KeepSession/>

Tags are:

KeepSession

Body tag lets your page provide permanents requests to the server side (keep a session alive). Parameters are:

1) timeout Optional attribute. Describes a timeout for the requests in seconds. Default value is 120.
2) cond Optional parameter. Describes a boolean value tag's behavior depends on. Default value is true (keep a session).
 

for downloading:

 Library: keepsessiontag.jar     Description: taglib.tld  Image: keepsession.gif

 © Coldbeans      Comments?

See also Coldtags suite - the largest collection of custom JSP tags.

Also in Coldtags: