> So my question is, is there some kind of effect that
> sending a redirect has on session management?
No, not inherently. IE is notorious for messing this up. Try the same
exact code on some other web browsers such as Mozilla or Opera. It
should work fine.
See a few posts down where I mentioned encoding a URL to solve this problem.
Cheers,
Jayson Falkner
[EMAIL PROTECTED]
Gardner Monte wrote:
> I just found something weird.
>
> I'm creating a JSP app, using IE 5.5 to view it.
> In one page, I was writing an object to the session variable
> like so
> request.getSession(true).setAttribute("user",user);
> response.sendRedirect("portfolio.jsp");
>
> then, in portfolio.jsp, the next page, I was trying to read
> that same object like so
>
> Arist user = (Artist)session.getAttribute("user");
>
>
> but the user variable kept on beeing null, as if it had
> never been written to the session. However, when I changed
> the first part of the code by taking out the redirect, and
> just putting in a link to portfolio.jsp, it worked fine, the
> User object was read from the session variable just like I
> wanted it to.
>
> So my question is, is there some kind of effect that
> sending a redirect has on session management?
>
>
>
> --Monte Glenn Gardner
>
> ___________________________________________________________________________
> 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