yes, i also dont understand the same. when i keep my browser privacy level to "medium-High" i get a true for request.isRequestedSessionIdFromCookie() , and if it is "High" or "All Cookies Blocked" , i get it as false! Also, i have non-persistent cookies, which ideally should expire when my session expires. but they dont! If i logout for a user, i am doing session.invalidate(). With the same browser, if i again login and print the values of the Cookie, bfore i m setting them, i get the previous values! So, how am i suposed to make sure that the Cookie Expires??
On 1/16/06, Christian Bollmeyer <[EMAIL PROTECTED]> wrote: > > Craig McClanahan schrieb: > > On 1/15/06, Deepa Khetan <[EMAIL PROTECTED]> wrote: > >> Hi! > >> My application requires, "per-session cookie" to be enabled on client > >> browser. How can i determine in my java code if it is enabled or not! > >> Deepa > > > > There is only one test that is useful for this ... set a cookie on one > > response, and see if that cookie comes back in on the subsequent > request. > > There is absolutely no way to know, from a current request, whether or > not > > cookies are enabled for *your* webapp. > > > Craig McClanahan > > Hm. So I understand request.isRequestedSessionIdFromCookie() is > presumed to be useless, then? Why exactly? > > -- Chris. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >