• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Logout mechanism on Digest Authentication

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I have a problem in logout mechanism for my web app. For logging in I use Digest Authentication. Here is how things go:

1. On the same web app I first used Form Authentication and on each jsp page I created I used, on logout, bellow code:
session.invalidate();
response.sendRedirect("samepage.jsp";

2. Next, again on the same web app, I only changed <login-config> tag in web.xml, in order to achieve Digest Authentication, as bellow:
<login-config>
<auth-method>DIGEST</auth-method>
<realm-name>Authentication Area</realm-name>
</login-config>
Then, login procedure worked OK, but on log out, I still could access the secured jsp pages (as defined in web.xml)

Is there a problem in logout mechanism for Digest Authentication? How could I manage to logout?

Thanks in Advance for your answer.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think DIGEST works like BASIC authentication in this regard - the browser keeps sending the credentials it until it is closed. But if the session is invalidated, then you should be able to check for that, and deny access accordingly, no?
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic