I am having some trouble with JDBCRealm. It loads correctly but any
attempt I make to login is greeted with this message on the console.
2001-07-18 09:59:15 - Ctx( ): From login without a session
I assumed this means I have a problem with my session and cookies. I am
testing all of this with Galeon and Mozilla so I turned off the cookie
manager and allowed all cookies. No luck.
Then I wrote a test servlet with this snippet...
HttpSession session = request.getSession(true);
session.setAttribute("testObject",testObject);
if(session.isNew()){
System.out.println("User hasn't set a cookie");
}
Still no luck. So I wrote this...
Cookie test = new Cookie("test", "testy");
test.setComment("testies");
response.addCookie(test);
Nothing works. I don't get any prompt for a cookie and neither of my
browsers has any mention of a cookie.
I'm running tomcat3.2 on localhost:8080 with no apache and my
server.xml...
<RequestInterceptor
className="org.apache.tomcat.request.SessionInterceptor"
noCookies="false" />
Any Ideas???!!!
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com