If you want to support non-cookie clients and
you're not working in a secure environment,
passing the session ID on the URL is the easiest
way IMO. If you use the correct name for the
session_id parameter on the URL, the servlet engine
will automatically recognize it and when you call
getSession you will get the correct session object.
You can find out the session ID parameter name in
your web server or servlet engine documentation.
For JRun it is jrunsessionid, for other engines I
have seen jsessionid.

In future, the archives of this mailing list (available
from the Sun website) are a good place to look for answers
to these type of session questions, since this topic has
been exhaustively discussed.

Good luck!

-----Original Message-----
From: Denis Bucher [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 24, 2000 12:25 PM
To: [EMAIL PROTECTED]
Subject: Again: Sessions: Questions


Hello !

Maybe my message is too obvious to get answers, in that case I would
appreciate (if no answers) at least some pointer or... Well any hint :-))

Denis

-------- Original Message --------

Hello !

I want to implement session IDs, but the best way. It's in a non-password
environnement, simply a "hello dear client, we recognized you".
I therefore have some questions :

1) To sort with-cookies and without-cookies browsers/users, we have to
   - do a reload from the servlet to the servlet with cookies, test if
     cookies are enabled, and if not work with IDs in the URL (?)

If this is correct : I think the first hit is on the servlet *being* the
*homepage* and the second on the servlet with an url like
http://host/servlets/sessionserv?testsession

If yes, how to see the url that was used ?

2) Then, each ID identifies one client, with a name and sometimes with
   an address. I suppose this has to be put into the database... (?)

What is the cleanest way to do it ?

More than questions, are my affirmations correct ?

Denis

--

Denis Bucher,   /  [EMAIL PROTECTED]       T�l. +41-22-8000625   \  Internet
Horus Networks /  horus-networks.com    Fax: +41-22-8000622   \  Services
              /  http://www.horus.ch   US Fax: (508) 437-1261  \  Provider

___________________________________________________________________________
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

___________________________________________________________________________
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