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

session.isNew() always return true  RSS feed

 
Himalay Majumdar
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code below is for handling session-timeout issues in our application. The problem is session.isNew() always returns true. I am doing a .getSession(false) and still a new session gets created all the time and so it treats it as timeout all the time. Anyone who can help me understand this. Thank you.

 
Himalay Majumdar
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone?
 
Himalay Majumdar
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok lasttime..anyone?
 
Abzee AntiPro
Greenhorn
Posts: 14
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the create parameter is true, externalContext creates(if necessary) and return a session instance associated with the current request. If the create parameter is false the externalContext returns any existing session instance associated with the current request, or return null if there is no such session.

Why dont you change your logic a bit and do something like this.



This would be the passive way for achieving the same functionality.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!