Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

unable to reset cookie max age

 
yogesh srinivasan
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I try to set max age of a cookie to 60 but the response gives maxAge as -1
Could any one help me




Output
Session.isNew=false
cookie name= cookie1 value= 1 maxAge= -1
cookie name= JSESSIONID value= 528959C4A05A6084DF6E878AA440000A maxAge= -1
session ID528959C4A05A6084DF6E878AA440000A
session MaxInactivInterval 1800
session attirbute1 value= 1
 
Sourin K. Sen
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try writing this line :

after this :


and then tell us the output...
 
yogesh srinivasan
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but i'm basically trying to look at the new maxAge returned by the next request send by the same client.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!