Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Servlets
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams
this week in the
Agile and Other Processes
forum!
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
Devaka Cooray
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Jeanne Boyarsky
Tim Cooke
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Mikalai Zaikin
Carey Brown
Bartenders:
Forum:
Servlets
Keep having to login with container based authentaction.
Dean Chester
Ranch Hand
Posts: 31
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi
I have written something using the j_security_check. Yet i keep having to login. My web.xml file looks like this:
<login-config> <auth-method>FORM</auth-method> <form-login-config> <form-login-page>/login.jsp</form-login-page> <form-error-page>/loginFailed.jsp</form-error-page> </form-login-config> </login-config> <security-role> <role-name>admin</role-name> </security-role> <security-role> <role-name>user</role-name> </security-role> <security-constraint> <web-resource-collection> <web-resource-name>users</web-resource-name> <url-pattern>/normal/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>user</role-name> <role-name>admin</role-name> </auth-constraint> </security-constraint> <security-constraint> <web-resource-collection> <web-resource-name>users</web-resource-name> <url-pattern>/restricted/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>admin</role-name> </auth-constraint> </security-constraint>
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
Posts: 1183
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Are your users defined in the tomcat.xml file ?
JDBCSupport
-
An easy to use, light-weight JDBC framework
-
Dean Chester
Ranch Hand
Posts: 31
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 1183
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Is your session tracking working ?
JDBCSupport
-
An easy to use, light-weight JDBC framework
-
Dean Chester
Ranch Hand
Posts: 31
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How do you mean i enabled session persistance on
tomcat
which uses a database and that works.
Dean
Sebastian Janisch
Ranch Hand
Posts: 1183
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I mean is your browser passing the session ID between the requests ?
JDBCSupport
-
An easy to use, light-weight JDBC framework
-
Dean Chester
Ranch Hand
Posts: 31
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Yes it is.
Clowns were never meant to be THAT big! We must destroy it with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Redirection after realm authentication
Get Error messages/Exceptions from Active Directory Server(ADS) with Weblogic 9.2
confusion regarding authentication
Form Authentication not working
Adding users and roles
More...