Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Removing session variable using page directive  RSS feed

 
Geetha Gubendran
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In one of the jsp tutorials, I read that, In the @page directive, you can indicate that you do not need sessions, in which case the "session" variable will not be made available. Can somebody tell me, at code level, how can we achieve this?

Thanks,
Geetha.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you look at the documentation for the page directive? What did you find?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By the way, is your name Raj Shan, or is it Geetha?
 
Naresh Talluri
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use attribute like session="false" to avoid sessions.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!