You should only loose your session if session cookies support is disabled, and
- the redirected URL has not been rewritten to add the session id, or
- you redirect to another context / server


in the second case the passed session id will be invalid, or ignored, depending on the case.

Sometimes I have lost my session because I was not calling the getSession() in my servlet. This led my servlet engine to not properly set the response cookies.

Hope it helps you,
Rodrigo Ruiz

Duncan wrote:

Is it normal to loose your session when using the
response.sendRedirect() command?

If so is there a way to redirect without loosing the session?

Cheers, Duncan.
Decker Telecom Ltd


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







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



Reply via email to