File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Can we Disable Sessions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Can we Disable Sessions" Watch "Can we Disable Sessions" New topic

Can we Disable Sessions


Joined: May 23, 2005
Posts: 9
In JSPs as we can disable scriptlets in the same line can we dis-able the use of sessions. Also is there any way such that in Servlets the use of Sessions could be banned. Can we make the Sessions unavailable in Servlets???
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

"Diwakar k"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it


Thanks! and welcome to the JavaRanch!


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
Can we make the Sessions unavailable in Servlets???

Whether or not a given servlet uses sessions depends on the servlet code.
You can certainly write servlets that do not use sessions, however, sessions are an integral part of the servlet and JSP API and all servlet containers should implement them.
I agree. Here's the link:
subject: Can we Disable Sessions
It's not a secret anymore!