• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can we Disable Sessions

 
Diwakar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Diwakar k"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it

here.

Thanks! and welcome to the JavaRanch!

Mark
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic