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
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
Forum:
Servlets
Keep having to login with container based authentaction.
Dean Chester
Ranch Hand
Posts: 31
posted 15 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 15 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 15 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 15 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 15 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 15 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 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Yes it is.
What are you doing? You are supposed to be reading this tiny ad!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
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...