nacredata has asked for the wisdom of the Perl Monks concerning the following question:
Ok, so far, and it's not been too long, I love Mason. But I'm stuck on Session values.
My httpd.conf file declares %session a MasonGlobal. My root level autohandler checks/sets cookies and ties the %session and logs in. That all works great and users stay logged in across the various pages.
But when I try and assign a value to that global %session value somewhere other than the autohandler where it is localized (as the Mason book strongly suggests), the value is not saved to the next page. So I guess the global %session is not tied, just the local autohandler %session.
How do I get a value into that localized %session, and thus to the underlying MySQL session table, from another module??
I tried creating a method in that autohandler and passing values back it, but that didn't seem to work.
thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mason Sessions - problem Storing values
by perrin (Chancellor) on Apr 20, 2005 at 00:45 UTC | |
by nacredata (Sexton) on Apr 20, 2005 at 00:56 UTC | |
by perrin (Chancellor) on Apr 20, 2005 at 12:27 UTC | |
by nacredata (Sexton) on Apr 20, 2005 at 18:35 UTC |