I don't have an example handy, but there are several ways of accomplishing
this.

The most standard approach is to save session information to user tables, or
name/value 'hash' type tables, in a central or clustered database.  You can
then track session information in one of a couple fashions:
        1.  Cookies - save a session to a cookie, map the session to a userID in
the database.  Make your ID complex to prevent random guessing of account
numbers.
        2.  URL rewriting - same basic approach as cookies, but pass the ID via the
querystring instead.  MS Site Server uses this approach.

I believe HTTPServletSession uses the cookie approach automatically, but not
being an expert, I'm not 100% certain.  Perhaps somebody could answer that
for us... ?

Andy LaMora

-----Original Message-----
From: Matthias Barmeier [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 23, 2000 10:54
To: [EMAIL PROTECTED]
Subject: Does session migration work with Tomcat ??


Hi,

is it possible to use session migration with tomcat ??
Or does anybody has a snippet or an url where I can get some hints ??

What I want is several tomcat servers behind a load balancing hardware that
are session aware.

Is this possible ??

Ciao
        Matze

/*
    Dipl.-Inform. Matthias Barmeier        Tel: +49 (0)30 79 70 72 87
    Büro für Softwareentwicklung           Fax +49 (0)30 79 70 72 88
    Grunewaldstr. 18                       Email: [EMAIL PROTECTED]
    12165 Berlin                           WWW: <http://www.barmeier.com>
*/






Reply via email to