• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cookie expiry (contd)

 
Karan Tyagi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Preethi,
Well after i have created the cookie and accessed the HTML page, I again access another HTML page in which I am retrieving the value of the cookie. I have put in the relevent try/catch blocks to catch an exception, in case no cookie is retrieved. But even after two minutes (wrt setMaxAge(120)) or even after 20 minutes the cookie does not expire. And when I access the HTML page in which I am retrieving the cookie value, it does so. Hence the cookie is not destroying automatically. Help me out!!
Karan
 
my overalls have superpowers - they repel people who think fashion is important. 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!