|
Re: Internal_redirect, clear_buffer, etc ... not saving session vars?: msg#00228web.mason.user
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> |
|---|---|---|
| Previous by Date: | Re: How-to clone a whole project ?: 00228, Ken Williams |
|---|---|
| Next by Date: | Re: Global "app context" approach: 00228, Dave Rolsky |
| Previous by Thread: | Internal_redirect, clear_buffer, etc ... not saving session vars?i: 00228, Adam Roth |
| Next by Thread: | Exceptions.pm: 00228, Kevin Hadlock |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |