Good Afternoon-
Scrounging the jaas mail -lists I found this from Jan Bertel
you haven't specified a
<realm-name> element in the <login-config> element of your web.xml file.
So, if you want to avoid the exception, you can just specify a
<realm-name> that is the same as your jboss-web.xml <security-domain>
element minus the java:jaas prefix.
(excerpted from Jan Bertel reply to exceptions enountered during logout.jsp)
http://www.servlets.com/archive/servlet/ReadMsg?msgId=483429&listName=jetty-discuss
HTH,
Martin-
----- Original Message -----
From: "Raghu Kanchustambham" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Sunday, November 20, 2005 1:44 PM
Subject: session.invalidate doesnt log me out...
Hi,
Shouldnt session.invalidate() log me out?
request.getSession().invalidate();
try {
response.sendRedirect("home.jsp");
} catch (IOException e) {
e.printStackTrace();
}
I am using JAAS Basic authentication on tomcat. When the above code is
executed and the redirection happens back, i expected that login box will
pop up again asking me my user id and password. But nothing of this sort is
happening.
When I first time hit the home.jsp .. the box pops up and authenticates me.
Should I not expect the same behavior from the above code. which first
invalidates my present session and then sends a redirect to the
home.jsppage?
Can someone throw some light on what is happening?
Thanks.
Raghu
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]