vqServer Sessions


Sessions are a means of providing stateful connections between clients and servers (the HTTP protocol used for communication between web servers and web browsers is stateless). In brief, a servlet invoked by a client can initiate a session, which is stored on the server. The server sends a cookie to the client. The cookie identifies the client in subsequent HTTP requests. Servlets invoked by the client can store and retrieve data from the session.

A more detailed overview of the session mechanism, a tutorial and information about the session API can be found in JavaSoft's online servlet documentation.

The SessionDemo servlet distributed with vqServer illustrates some features of sessions. Follow the link from the sample home page to try it out. The source code for SessionDemo is in the file website/servlets/vq/demos/SessionDemo.java.

vqServer implements the sessions API defined in version 2.0 of JavaSoft's servlet API. vqServer's session support requires the directory vq/server/sessions/ to be present in your website/ directory

vqServer
FAQs
Register (free!)
Support

Contents

File types
System settings

Sessions control

Session tracking page

This page is displayed by clicking on the Sessions option in the control centre menu. It contains a form which controls vqServer's sessions facility.

Session tracking enabled

This check box lets you switch session support on or off.

Save sessions on shutdown

If this box is checked, sessions and session data are saved when vqServer is shut down and restored when vqServer is restarted.

Session timeout (minutes)

The time for which a session is maintained after it is last accessed. Once this interval has expired the session and its data are deleted.

Sessions cached in memory

The number of sessions vqServer keeps in memory. Unexpired, least-recently accessed sessions in excess of this number are saved to disk (in the website/sessions/ directory) and restored as required.

Kill all sessions now

If this box is checked all current sessions will be destroyed when the Ok button is clicked.


vqServer version 1.9. Copyright © 1997-2000 Steve Shering and vqSoft. Last updated 30 March 1999.
Control centre menu

vqServer
Contents
Sessions

File types
System settings