> The question is: should i generate a
> session Cookie
> that will be recovered by my following servlet or just generate
> any session
> parameter ( which will be recovered later too ), since i guess i only need
> to control the whole internal process.

Umm, Slap me down if I'm wrong but I assume you mean: should you generate
your own cookie, or should you use the Session object to store the
information?

Tomcat has two mechanisms for retaining session information. Using cookies
or URL rewriting. I believe that it uses the first by default but that it
can be turned off.

Essentially you are choosing between creating your own cookie, or having
tomcat do it for you I think. Of course, if you are going to store session
information in any cookie, make sure that your app tests whether browsers
are accepting them or not - cos then you'll ahve to switch to the other
method (rewriting).

I'm not sure what best practice in this case would be as I've used both
methods in the past (and a couple of others as well but we won't discuss
those...). I'd use cookies with url-rewriting as a backup tbh.

james


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to