Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

using 127.0.0.1 creating new Session in the same window  RSS feed

 
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!