This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Keep having to login with container based authentaction. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Keep having to login with container based authentaction." Watch "Keep having to login with container based authentaction." New topic
Author

Keep having to login with container based authentaction.

Dean Chester
Ranch Hand

Joined: Jul 26, 2009
Posts: 31
Hi
I have written something using the j_security_check. Yet i keep having to login. My web.xml file looks like this:


I can get it to work if i only have a small number of jsps in the restricted in the directory.
Thanks in advance
Dean
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
Are your users defined in the tomcat.xml file ?


JDBCSupport - An easy to use, light-weight JDBC framework -
Dean Chester
Ranch Hand

Joined: Jul 26, 2009
Posts: 31
No in my database which it access as i can get logged in just when i come to do something once logged in i have to relogin.
Dean
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
Is your session tracking working ?
Dean Chester
Ranch Hand

Joined: Jul 26, 2009
Posts: 31
How do you mean i enabled session persistance on tomcat which uses a database and that works.
Dean
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
I mean is your browser passing the session ID between the requests ?
Dean Chester
Ranch Hand

Joined: Jul 26, 2009
Posts: 31
Yes it is.
 
 
subject: Keep having to login with container based authentaction.
 
Similar Threads
Redirection after realm authentication
confusion regarding authentication
Get Error messages/Exceptions from Active Directory Server(ADS) with Weblogic 9.2
Adding users and roles
Form Authentication not working