HttpSession sess = req.getSession(true);
String sessID=sess.getId();

Is pretty unique.

Chris


On Fri, 1 Sep 2000 15:59:33 +0100, John Studdert wrote:

>Hi,
>
>        Thanks for all the replies - they're greatly appreciated. Sorry
>for taking so long to get back, but I've been trying the solution
>generously provided by Michael. This compiled and ran on the
>webserver, which was a BIG step, and thank you for that. Unfortunately it
>doesn't seem to keep individual sessions properly - if two users log in
>simultaneously and make bookings, the servlet just overwrites the first
>with the second, and there's just one user logged in. What I think you
>could help with here is my interpretation of your code: the
>USER_COOKIE_NAME is basically the session id here, right? So would I need
>to generate a unique String value for this for each user? I'm not clear on
>how to do that - at the moment it's just an unchanging static String -
>which seems to me to be the most likely reason for the overriding of user
>sessions. Here's hoping you can help as much as you did before!
>
>        Thanks again, to the others too. Btw, if we were upgrading, we'd
>just go straight to Apache+JServ (we've a lot of HTML generation, so JSP
>would be nice but is not essential, plus I've heard Tomcat isn't quite up
>to the standard of JServ yet - would this be right?). This is probably the
>better option compared to NES + JRun (et al) or just upgrading NES yes?
>
>        John
>
>___________________________________________________________________________
>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