Win a copy of Rust Web Development this week in the Other Languages 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic