-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
Hi,
On Fri, 17 Sep 1999, Sun JunXu wrote:
SJ| after I set session and redirect to other page, I can't get session what I
SJ| set in previous page,
SJ| what happened?
Your Browser probably doesn't accept cookies, so you've to pass the
session within the URL. You do this 'URL-Rewriting' with the
HttpServletResponse.encodeURL() and
HttpServletResponse.encodeRedirctURL() calls.
See:
<http://java.sun.com/docs/books/tutorial/servlets/client-state/>
for details.
Another problem may occur, if you use SSI-pages which contain links to
servlets or other SSI pages. If cookies are turned off, you loose the
session if you follow such a link since the URL isnt rewritten.
BUT - our outstandig JSSI leaves you not alone :-) It is capable to
automatically rewrite any URL in you SSI page:
<http://java.apache.org/jservssi/parameterprop.html>
ciao,
-hen
---
Henner Zeller [EMAIL PROTECTED]
PGP pub key [77F75B39]: finger [EMAIL PROTECTED]
Microsoft is not the answer, it's the question. The answer is 'NO'
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]