Win a copy of Rust Web Development this week in the Other Languages 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Spring security and session management without using spring MVC module

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

M currently working on spring 2.5 for security puposes. My question is how to maintain or monitor a session through spring-config.xml or spring-security.xml. I want step by step procedure. Following are the objectives I want to achieve:

1. Traditional session time out after specified amount of time.
2. Invalide session and redirect to specifed url.
3. Not more that 1 user can login with same user name i.e concurrency control.

Note: I am not using Spring MVC module and we are using Struts 2.0 so, just for request dispatching we are using session oject of servlet. To transfer the data but to control the overall sesison I want to use springconfig.xml.


Thanks !
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Nagbhushan Menasigi wrote:Hi,

M currently working on spring 2.5 for security puposes. My question is how to maintain or monitor a session through spring-config.xml or spring-security.xml. I want step by step procedure. Following are the objectives I want to achieve:

1. Traditional session time out after specified amount of time.
2. Invalide session and redirect to specifed url.
3. Not more that 1 user can login with same user name i.e concurrency control.

Note: I am not using Spring MVC module and we are using Struts 2.0 so, just for request dispatching we are using session oject of servlet. To transfer the data but to control the overall sesison I want to use springconfig.xml.


Thanks !



You would do the exact same thing. Are you using the Spring integration with Struts 2?

You make a security configuration using the security namespace and then secure your url with <security:url-intercept> There are tags and attributes within that namespaces to set things about your session. I am not sure about #3 though.

You can look at the Spring Security documentation on securing web pages.

Mark
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic