Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Two URLs pointing to same application.

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

I have a requirement where I need to have two different urls for the same application. The first url http://host:port/contextpath which leads to default applicatioin login with three fields,
1. Useraname
2. Password
3. Database

Then second url http://host:port/contextpath/agondemand.jsp which leads to the same page but with different options
1. Username
2. Password
3. Company ID
4. Database

Both are working. But my problem is with session expiry. for the second url if session expires, I am unable to capture the data and send it back to same login page. When ever session expires it goes back to default url without company id field.

Please help me to figure out how to redirect the url to second one without disturbing the default url.

Thanks and Regards
Default.png
[Thumbnail for Default.png]
Default Page
agOnDemand.png
[Thumbnail for agOnDemand.png]
URL Sepecific to few customers only
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The issue is that your server is using the same session ID for both applications. The solution is to configure your application to use a specific session ID. The exact solution is server-dependent.
 
Dilip H Pashupathi
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

We are using Jboss 7.0.1 and Weblogic 10.3.6 Servers for deployment and for development we are using Tomcat 6.0 server. Can show me how this is done, meaning how can we assign two different session ids to same application running on same server.

Thanks and Regards
Dilip H P
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm sorry. I thought you had the same application deployed twice. I see now that you have two different entry points.
Why isn't "company id" associated with a user? Can the user use different companies? Or database for that matter.
 
So there I was, trapped in the jungle. And at the last minute, I was saved by this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic