i am facing problem with cookies ,i have also made session in the coding- * it is storing a JSESSIONID & its corresponding value,eventhough i am not setting in it. * also , plz. tell me the way if we can destroy the cookie that is already present ,created by another user , before surfing the site . Thanx !!! -- sevika satalkar
hi , thanks for giving such a quick response . in servlet api i have read this --
setMaxAge(int ) :- A positive value indicates that the cookie will expire after that many seconds have passed. Note that the value is the maximum age when the cookie will expire, not the cookie's current age. A negative value means that the cookie is not stored persistently and will be deleted when the Web browser exits. A zero value causes the cookie to be deleted. when should be it set to zero , just before any one starts surfing the site , will it do .