Once you realize that %session entries have to be scalars (references) as
described by other responses, be sure when you change entries in the
sub-hash that you tell the top-level session that the data's been changed
(it won't realize it unless you change one of its scalars).

Check the docs or the archives for the "official way" to do this (a message
from Jeffrey Baker uses such a phrase), but any modification of a %session
scalar will do - $session{_changed}++; , f'rinstance.

Best,

Randy

On Fri, Nov 03, 2000 at 04:36:15PM +0000, Enrique I . Rodriguez wrote:
> Maybe a silly question... 
> 
> how do I store/retrieve a hash through Apache::Session?
> 
> This doesn't work...
> # retrieve
> %table=$session{table};
> ...
> # store
> $session{table}=%table;
> 
> What's my fault?

Reply via email to