Adi wrote:
>
> 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
no, you have access to the current $Session, but not to other users'
$Sessions.
> $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" };
>
yes
> 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.
>
Only if you do. Why would you want to do such a thing ? There
may be other ways around your problem.
> 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?
>
Not terribly.
> 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?
>
Apache::ASP uses Data::Dumper with MLDBM to store data internally.
-- Joshua
_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NODEWORKS >> free web link monitoring Huntington Beach, CA USA
http://www.nodeworks.com 1-714-625-4051