my dog learned polymorphism*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 17249

"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 - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
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.
It is sorta covered in the JavaRanch Style Guide.
subject: Can we Disable Sessions
Similar Threads
How to Invalidate Session
Session Creation Time
disabling cookie
Values from one jsp page to all other