Red Hat NETSCAPE ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manuel d'utilisateur Page 69

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 124
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 68
Load Balancing, Session Failover, and Session IDs
Chapter 6 Session Managers 69
timeOut=1200,username=mysession,password=mypassword
Edit the file servlets.properties in the directory server_id/config. This will
apply to the default virtual server only.
Add a line specifying a value for
servlets.sessionmgr and a line specifying
the parameters for the session manager:
servlets.sessionmgr=com.netscape.server.http.session.JdbcSessionManager
servlets.sessionmgr.initArgs=timeOut=1200,username=mysession,password=mypassword
Edit the file contexts.properties in the directory server_id/config. This will
apply to the default virtual server only.
Add a line specifying a value for
context.context_name.sessionmgr and a
line specifying the parameters for the session manager:
context.global.sessionmgr=com.netscape.server.http.session.JdbcSessionManager
context.global.sessionmgr.initArgs=timeOut=1200,username=mysession,password=mypassword
You can change the global context or define a new context and assign specific
servlets to it. For more information, see Chapter 8, “Legacy Servlet and JSP
Configuration.”
This session manager can only store objects that implement
java.io.Serializable.
Load Balancing, Session Failover, and Session
IDs
iPlanet Web Server 6.0 supports server farm (or cluster) configurations with
off-the-shelf, session-aware front-end load balancers such as Resonate. iPlanet Web
Server 6.0 implements sticky sessions by prefixing the node_id of the server host
that generated the session to JSESSIONID, the session cookie name specified in the
Servlets 2.2 specification, as follows:
Set-Cookie: JSESSIONID=node_id-3ad%253A39c02099%253Ad19e53e2a2;
path=/app;expires=Thu, 14-Sep-2000 01:19:30 GMT
This enables the front-end load balancer to forward future requests to the same
host that generated the session.
If the session manager used by a cluster supports distributed sessions, an alternate
server can pick up a session created by a server that crashed. The
IWSSessionManager supports distributed sessions if its session-data-store
parameter has a value that defines the mode of session persistence. The
JdbcSessionManager also supports distributed sessions.
Vue de la page 68
1 2 ... 64 65 66 67 68 69 70 71 72 73 74 ... 123 124

Commentaires sur ces manuels

Pas de commentaire