please bear in mind I'm pretty much guessing here, but I hope some of this
may prove uiseful to you:

You could use hidden form fields, but if you're using a get request they
would still appear in the URL. In any case, users could still see them by
viewing
the source, so not a great idea if don't want ppl to be able to access the
session IDs.

I don't know of another way to do this.

I believe there is an HttpServletResponse method called encodeRedirectURL()
which
checks if the client is supporting cookies and only writes the seesion ID
into
the URL if it doesn't, which may provide an answer to your two session IDs
problem.

Perhaps you are getting one session ID for each implementation you have,
which is
why you only get the one session when the client doesn't support cookies.

-----Original Message-----
From: Arun.N [mailto:[EMAIL PROTECTED]]
Sent: 08 May 2001 07:50
To: [EMAIL PROTECTED]
Subject: Session Problem


Hi All,

                Is there any way to track  the session if the client browser
doesn't support Cookies...
I used URL rewriting by i don't want my session id to be exposed...
Is there any way that i can store the session id as a header information and
get it back every time.. ?
The session id generated by tomcat(with apache) is very small
abt..10characters.. and i am getting
problem when implementing both url rewriting and Http session... the problem
is ...
when url is rewritten in a page .. its not considering it in the same
session the new page is having a diffrent session id... And the greatest bug
i saw is when in this is.... when cookies turned off it works fine if
cookies are ON then
there are two session for a client...
i mean the following code is giving me this output
-----------------------------------------------
All Your Cookies Contains.......
<br>
<%

 Cookie c[]= request.getCookies();
 for(int i=0;i<c.length;i++)
 {
      out.println(c[i].getName()+"  "+c[i].getValue()+"<br>");
 }
%>
-----------------------
All Your Cookies Contains.......
JSESSIONID 518xqr3oi1
JSESSIONID 9llkco3st1
--------------------------------------------

there are two cookies with same name ????? with diffrent value .. how is
this possible ...
Thankx in advance.....


Arun.N

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to