Red Hat NETSCAPE ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Uživatelský manuál Strana 71

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 124
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 70
71
Chapter 7
API Clarifications
This appendix clarifies ways in which the Servlet 2.2 API specification is
implemented in iPlanet Web Server 6.0 in the following sections:
Clarification of HttpSession Scope
Clarifications for Using Methods
Other Useful Information
Clarification of HttpSession Scope
The Servlet 2.2 API Specification is open to interpretation in regard to the scope of
HttpSession objects.
By default, iPlanet Web Server marks the session tracking cookie’s path to that of
the context or application’s contextPath. This results in the browser not replaying a
session cookie to an application for which it is not intended. Hence, the
HttpSession objects are scoped appropriately.
However, if servlet A in one context dispatches a request to servlet B in a different
context, the specification is open to interpretation. By default iPlanet Web Server
permits this, and you must make sure that the attributes placed in the HttpSession
object are loaded by a class loader that is common to the applications involved.
You can use a virtual-server-level class loader or the system class loader, although
this is not generally recommended.
To allow different applications to share sessions and session attributes:
Use a common session manager at the virtual server level.
<vs>
<session-manager class="..." />
</vs>
Zobrazit stránku 70
1 2 ... 66 67 68 69 70 71 72 73 74 75 76 ... 123 124

Komentáře k této Příručce

Žádné komentáře