Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Session management & virtual hosting...

 
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I set user details in a session, and my applicaion is such that it serves custom look and feel sites depending on site URL, which actually is virtual hosting. Though all functionality is carried out by the same webapp, two sites say abc.com & xyz.com will have significantly different look depending on CSS, few custome pages & images designed for them.

So how does my authentication/sessions work in this case? All this is being served by same webapp on the same physical server. Assume there are 4 sites -

abc.com
abc.net

xyz.com
xyz.org

Now I want user logged on abc.com to use abc.net without requiring to sign-in again, but same user should not be able to do it for xyz.com or xyz.org. There he needs to register/login differently.

That way sites are grouped in a different way. How can I achieve this? Can somebody help me visualize things a bit more clearly here w.r.t. virtual hosing....I am sort of lost.

rgds,
- Manish
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does this have anything to do with Struts?
 
Ranch Hand
Posts: 354
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
products like tivoli access manager and siteminder will let you do this quite easily; however, they are enterprise level products that will cost you arms, legs, and both kidneys.

you should be able to do what you want with cookies, setting explicit domains and/or path. each site will perform cookies checking and do authentication as necessary against a shared users repository. you'll need to do this carefully and test against any possible security holes.
 
Manish Hatwalne
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not specifically to struts, I am asking here only because I have use it in context of struts+velocity under Apache Tomcat.

It's in a wa a pretty generic session management.

Thanks,
- Manish
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic