File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Cookies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Cookies" Watch "Cookies" New topic


kedar parundekar
Ranch Hand

Joined: May 10, 2006
Posts: 40
Can we use cookies for session tracking in case of static pages?
Isuru Sampath
Ranch Hand

Joined: Jun 26, 2003
Posts: 57
As long as you are sending the response to a servlet or a JSP you can utilize the session.

Reminder: To the client browser there is no difference between a static page and dynamic page.

So you can send requests from a static page to a JSP or a servlet on the server side.

No Winds No Waves
wood burning stoves
subject: Cookies