Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

using 127.0.0.1 creating new Session in the same window

 
sreenath reddy
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
  • 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 ]
 
Marilyn de Queiroz
Sheriff
Posts: 9079
12
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Hi meriyl

It worked when i appended jsession id to that url

Thanks for ur reply
 
For my next feat, I will require a volunteer from the audience! Perhaps this tiny ad?
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!