aa Contact Us aa Home aa About Us aa Sign Up aa Free JSP Books aa JSP Books



JSP AND COOKIES

   
WEB TIER
Subcategories


JSP Tutorials

JSP Tag LIBS

JSP and Java Beans

JSP and JDBC

JSP and Servlets

JSP and TOMCAT

JSP and STRUTS

Java Server Faces

Portlets

Jakarta Velocity

JSP Appls Downloads

Tag Libs Downloads

Eclipse

Linux

Databases

Web Development

JSP Certification

JSP Web Hosting

JSP Sites

JAVA NETWORK
aa JavaOlympus
aa J2EEOlympus
aa JSPOlympus
aa J2meOlympus













What is Session Tracking? There are a number of problems that arise from the fact that HTTP is a "stateless" protocol. In particular, when you are doing on-line shopping, it is a real annoyance that the Web server can't easily remember previous transactions
The Session Tracking API Using sessions in servlets is quite straightforward, and involves looking up the session object associated with the current request, creating a new session object when necessary, looking up information associated with a session, storing information in a session, and discarding completed or abandoned sessions.
Handling Cookies Cookies are small bits of textual information that a Web server sends to a browser and that the browser returns unchanged when visiting the same Web site or domain later.
Can cookies only be set in terms of seconds? What if I want to set one for a year? There are no convenience methods for setting a cookie's lifespan in terms of days, months or years. However, you can still have a cookie exist for these amounts of time.
How can I enable session tracking for JSP pages if the browser has disabled cookies? We know that session tracking uses cookies by default to associate a session identifier with a unique user. If the browser does not support cookies, or if cookies are disabled, you can still enable session tracking using URL rewriting.
Questions and Answers - Session state in the client tier A session is a sequence of service requests by a single user using a single client to access a server. The information maintained in the session across requests is called session state. Session state may include both information visible to the user (shopping cart contents, for example) and invisible application control information (such as user preferences).

    JSP
Introduction

Architecture

JSP Environment

JSP Directives

JSP Syntax

JSP Standard Tags

JSP Scripting Elements

JSP Custom Tags

JSP Templates

JSP and JavaBeans

JSP and Forms

JSP and JDBC

JSP and Cookies

JSP Debugging

JSP and Sessions

JSP and Servlets

JSP as Web Services

Wireless JSP

JSP and JMS

JSP and EJB

JSP TagLibs

JSP and XML

JSP and XSLT

JSP Design Patterns

JSP Design Strategies

JSP and EMail

JSP Testing

JSP Performance