This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Servlets and the fly likes How to stop session cookies? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply 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: 1506
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: 12327
    
    1
If your code never stores anything in a session, it won't matter anyway.

Bill


Java Resources at www.wbrogden.com
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: 12327
    
    1
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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to stop session cookies?
 
Similar Threads
How can I turn off URL-Rewriting of tomcat ? Thank you!
response.encodeURL() not working
Why am I always getting a new session *
cookie and jsp
Session management configuaration Issue