This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
  • 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

funky jsp to asp problem w/ jrun...real funky!

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have come across a funky problem. I have jsp app that is running on JRun. One jsp does a redirect to an ASP which then builds a cookie and then redirects back to the calling jsp. the jsp checks for the presence of that cookie.If it is there it skips the redirect to the ASP and continues. The thing is that different users(browser sessions) are getting the same session back allowing them to see each others data!!! I have tried redirecting to the asp before the session is created and after and the results are the same. I haven't exactly nailed it down...any ideas
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Is this cookie of yours getting generated (instantiated) in the
application scope ?
Taking a wild guess.....
- satya
 
Geoff Tate
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the cookie is response level - in the ASP the line is:
Response.Cookies("acct") = someField.
it addes the cookie then redirects back to the jsp page that called it:
Response.Redirect(referer)
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The only thing I can think of is that the ASP container (IIS w/ asp.dll, right? ) sees your JRun instance as the referer.

But how would that be possible, because you are using response.sendRedirect(URLString) in your jsp, which means *the browser* is sent an HTTP redirect command. So your asp should see it as coming from that client's browser, and not JRun.

 
I'm sure glad that he's gone. Now I can read this tiny ad in peace!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic