logo       

Re: Internal_redirect, clear_buffer, etc ... not saving session vars?: msg#00228

web.mason.user

Subject: Re: Internal_redirect, clear_buffer, etc ... not saving session vars?

On Sun, 24 Aug 2003, Adam Roth wrote:

> PROBLEM:
>
> $m->session->{join_userdata} is undef in step2.red after an internal
> redirect. I have made sure that this variable exists prior to redirecting.
> Is there any way to maintain this data with a redirect?

The question is why is the session not populated after the internal
redirect. I'd guess that the cookie containing the session id is not
showing up in the request made via the internal redirect.

_Why_ this happens is probably something to do with the Apache internals.

You could set the 'mason_session_args_param' value and then pass the
session id via the query string in the internal redirect. That would work
around the missing cookie. See the MasonX::Request::WithApacheSession
docs for details on this parameter.


-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise