Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Spring security and session management without using spring MVC module

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
I'm so happy! And I wish to make this tiny ad happy too:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic