File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Cookies" Watch "Cookies" New topic


chandan gavai

Joined: May 03, 2005
Posts: 3
In Javascript, i want to expire cookies on browser close event.

Thanks in advance,

Chandan G.
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
If you do not specify an expire time, the cookies are session cookies and they expire when the browser is closed.

Consider Paul's rocket mass heater.
subject: Cookies
Similar Threads
Session sharing (JSP-PHP)
handling next and back buttons in javascript
WA #1.....word association
can anyone tell me how to make a authentication with jsp & servlet
remember user password in jsp/java