> But I would prefer:
> display_id_and_username($session{User}->{id},$session{User}->get_name);
It can work, be very much warned though: as I remember I had a
hard time debugging why does not the %session get automatically saved in
some cases.
The result was: %session is automatically saved only if something
changes on the first level. If $session{User} is a reference to a hash,
and you assign some new value to $session{User}{haircolor} then it
does not trigger a store to the database.
I common practice is to manually force the storage of the session
variable: you can put a $session{dummy}++; to the end of your
autohandler: then the whole %session will be saved.
Best regards,
Baldvin
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users