Sun Java System Web Server 7.0 Update 3 NSAPI Developer's Guide

Session Data Structure

A session is the time between the opening and closing of the connection between the client and the server.

The following list describes the most important fields in this data structure:

The Session data structure holds variables that apply to a client, regardless of the requests being sent.


typedef struct {
    /* Information about the remote client */
    pblock *client;

    /* The socket descriptor to the remote client */
    SYS_NETFD csd;

    /* The input buffer for that socket descriptor */
    netbuf *inbuf;
} Session;

  

The following list describes the most important fields in the Session data structure:


Note –

The Session NSAPI data structure cannot be used concurrently by multiple threads. Do not retain any reference to a Session or its contents after processing of the current request is complete.