Sun Java System Web Server 6.1 SP9 NSAPI Programmer's Guide


A session is the time between the opening and closing of the connection between the client and the server. The session data structure holds variables that applies throughout the session, regardless of the requests being sent, as shown here:

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;

    /* Raw socket information about the remote */
    /* client (for internal use) */
    struct in_addr iaddr;
} Session;