aspose file tools*
The moose likes Servlets and the fly likes How to stop session cookies? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to stop session cookies?" Watch "How to stop session cookies?" New topic
Author

How to stop session cookies?

Sheikh Sadiruddin
Greenhorn

Joined: Aug 10, 2007
Posts: 21
Hi,
I do not want my web application to use session cookies;
For that i have added one field in jboss-web.xml file as


But this is not working. It still uses session cookies.
Any help is appreciated.


SCJP 6 (80%) || SCWCD 5 (92%)
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Don't know what that settings does. What I know is session tracking uses cookies by default. Unless cookies are disabled. And that needs to be done via the browsers settings.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Michael Ku
Ranch Hand

Joined: Apr 20, 2002
Posts: 510
Usually sessions cookies can be turned off on the web container. This will prevent session cookies from being available in your web app.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
If your code never stores anything in a session, it won't matter anyway.

Bill
Sheikh Sadiruddin
Greenhorn

Joined: Aug 10, 2007
Posts: 21

Usually sessions cookies can be turned off on the web container. This will prevent session cookies from being available in your web app.


I want to know how the session cookies can be turned off on the container.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
I want to know how the session cookies can be turned off on the container.


If you have read the servlet API, you should know the circumstances that cause session ID cookies to be created. Any configuration not covered in the API will be unique to a particular server.

What problem do you think will be solved by "turning off" session cookies??

Bill
 
Don't get me started about those stupid light bulbs.
 
subject: How to stop session cookies?