Thanks for your help.  I guess I was wondering if one could get a reference
to the $Session object directly without needing to add each value to
$Application as it is stored.  So to access arbitrary Session data from
Application I need to store it in Application at the same time it's stored
in Session?  e.g.

$Session->{'foo'} = "data";
$Application->{'Session'.$Session->{SessionID}} = { 'foo' => "data" };


Do you think there are any advantages to adding a "Get_Session" method to
$Application that will return a reference to the Session object with a given
ID?  e.g.

my $sessobj = $Application->Get_Session("87c6039a20a50a01000a054b547add4b");
print $sessobj->{'foo'};

That way I wouldn't have to go through all my code adding Session data to
Application. :)  How hard would implementing such a method be?


Yes, I'm using DB_File to store data, so the size won't be a problem.  BTW,
are there still problems using Storable with DB_File?

Thanks again,
Adi


Joshua Chamas wrote:
> 
> You end up having to add the information that you want
> to $Application yourself, and cleaning that up in
> Session_OnEnd.

Reply via email to