Seems like a propietary way of storing the session ID, I'm not much into JSP 
stuff so I really don't know. Someone else here may be able to explain.

You can store whatever you need in parameters, either by putting into URLs or 
by creating (hidden) controls on web forms. This is the preferred method of 
parameter passing, as it allows multiple instances (e.g. browser tabs) to 
coexist. You should only store things in a session that are related to the 
connection and user (e.g. user credentials, preferences and such), but 
absolutely not the page he's navigating now.

You can also add a "path" to the URL, e.g.

getparts.jsp/137063/4

Then "getPathInfo()" will return "137063/4" in getparts.jsp.

M

> -----Original Message-----
> From: Peter Chen [mailto:peter.c...@aicent.com] 
> Sent: dinsdag 08 december 2009 07:49
> To: Tomcat Users List
> Subject: RE: the Tomcat generates more than one session id 
> with the same http request, please help me
> 
> Thanks for Mike's reply.
> 
> I searched on the Internet, and I got a method, the detail is 
> as follows:
> <script language="JavaScript">
> document.write('    <object width="320" height="45" 
> classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95">');
> document.write('        <param name="filename" 
> value="getParts.jsp;jsessionid=B01FF12CBC92F9BA1682E9A883A3A1A
> D?timestamp=1260252638867&contentid=137063&timemark=20091110&i
> ndex=4" />');
> document.write('        <PARAM NAME="AUTOSTART" value="false">');
> document.write('        <embed width="320" height="45" 
> type="application/x-mplayer2" 
> src="getParts.jsp;jsessionid=B01FF12CBC92F9BA1682E9A883A3A1AD?
> timestamp=1260252638867&contentid=137063&timemark=20091110&ind
> ex=4" AutoStart="0">');
> document.write('        </embed>');
> document.write('    </object>');
> </script>
> 
> The most important sentence is 
> "getParts.jsp;jsessionid=B01FF12CBC92F9BA1682E9A883A3A1AD?time
> stamp=1260252638867&contentid=137063&timemark=20091110&index=4"
> 
> I know the URL like 
> "getParts.jsp?timestamp=1260252638867&contentid=137063&timemar
> k=20091110&index=4", this URL is used to pass parameters from 
> one Jsp to another one. And we can get parameters with 
> sentences like "request.getParameter("timestamp"); 
> request.getParameter("contentid ")".
> 
> But I don't know the part 
> "getParts.jsp;jsessionid=B01FF12CBC92F9BA1682E9A883A3A1AD", 
> is it also used to pass parameter?
> 
> If so, how to get the parameter? Thanks.
> 
> 
> 
> -----Original Message-----
> From: Looijmans, Mike [mailto:mike.looijm...@oce.com]
> Sent: 2009年12月7日 16:39
> To: Tomcat Users List
> Subject: RE: the Tomcat generates more than one session id 
> with the same http request, please help me
> 
> Put the session ID in the URL and it will work on all systems.
> 
> Alternatively, don't use sessions for the audio file.
>  
> 
> > -----Original Message-----
> > From: Peter Chen [mailto:peter.c...@aicent.com]
> > Sent: maandag 07 december 2009 09:22
> > To: users@tomcat.apache.org
> > Subject: the Tomcat generates more than one session id with 
> the same 
> > http request, please help me
> > 
> > Hi, all
> > 
> >  
> > 
> > I am testing a website with the server Tomcat.  I am using Tomcat 
> > 5.5.26, and I found one problem.
> > 
> >  
> > 
> > The website is used to display audio files. After I log in the 
> > website, I can see the icon of the audio file. But after I 
> press the 
> > button "play", it has different results with different browsers.
> > 
> > When I use firefox3.5.5 and Google Chrome 3.0, I found the 
> Tomcat will 
> > create more than one session id, and it can not be played.
> > 
> > But if I use IE6.0/IE7.0/IE8.0, I found there is only one 
> session id, 
> > and it plays well.
> > 
> >  
> > 
> > I don't know the reason, has someone met this problem 
> before,  please 
> > help me to solve this problem, thanks.
> > 
> > 
> 
> This message and attachment(s) are intended solely for use by 
> the addressee and may contain information that is privileged, 
> confidential or otherwise exempt from disclosure under applicable law.
> 
> If you are not the intended recipient or agent thereof 
> responsible for delivering this message to the intended 
> recipient, you are hereby notified that any dissemination, 
> distribution or copying of this communication is strictly prohibited.
> 
> If you have received this communication in error, please 
> notify the sender immediately by telephone and with a 'reply' message.
> 
> Thank you for your co-operation.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

This message and attachment(s) are intended solely for use by the addressee and 
may contain information that is privileged, confidential or otherwise exempt 
from disclosure under applicable law.

If you are not the intended recipient or agent thereof responsible for 
delivering this message to the intended recipient, you are hereby notified that 
any dissemination, distribution or copying of this communication is strictly 
prohibited.

If you have received this communication in error, please notify the sender 
immediately by telephone and with a 'reply' message.

Thank you for your co-operation.

Reply via email to