This week's book giveaway is in the JDBC and Relational Databases forum.
We're giving away four copies of Murach's MySQL and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's MySQL this week in the JDBC and Relational Databases 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

using 127.0.0.1 creating new Session in the same window

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

I am having a web application running on tomcat and i will be running that using http://server ip:port/appName

and internally in this application in a jsp i am using http://127.0.0.1/appName/servlet to access one resource and the strange thing is that the server is creating a new session for this which is creating sort of inconsistancy .

I am using this 127.0.0.1 to include a jsp ...The reason why i am using the url like this instead of a relative URL is .my client operates on some mapped network which results in some ipconflict .......thus i used 127.0.0.1 as this will be executed on the server side however

Can anyone let me know how to avoid this ??

(Marilyn disabled smilies in this post)
[ July 04, 2005: Message edited by: Marilyn de Queiroz ]
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
... and internally in this application in a jsp i am using http://127.0.0.1/appName/servlet to access one resource and the strange thing is that the server is creating a new session for this which is creating sort of inconsistancy.

Are you calling the resource servlet by using a link (doGet)? Or are you passing the session to the servlet?
 
sreenath reddy
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi meriyl

It worked when i appended jsession id to that url

Thanks for ur reply
 
Not so fast naughty spawn! I want you to know about
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic