• 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
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic