I'm trying to learn how to use the $Session object to maintain session
state and I'm running into a few problems. I want to use it to store a
reference to a complex data structure(It's an arrayref of hashrefs... yes I
read the docs on this and I'm using it read-only) like so:
$Session->{'companyrowref'} = Data::GetCompanies();
The first time I did this it worked fine-- I got my data structure back,
assinged it to the object and got data out of it fine across requests.
Then I needed to figure out how to figure out a way to invalidate it for a
refresh mechanism... I figured a simple undef would do:
undef( $Session->{'companyrowref'} );
Now it seems like the hash key is broken, when I try assign to
'companyrowref' I get this in my error log(even after a server restart):
[Thu Feb 28 10:57:23 2002] [error] [asp] [18562] [error] sdbm store
returned -1, errno 22, key "companyrowref" at
/usr/local/lib/perl5/site_perl/5.6.1/MLDBM.pm line 161. <--> ,
/usr/local/lib/perl5/site_perl/5.6.1/Apache/ASP.pm line 1556
So it seems that I shouldn't be undefing my hash key. I tried getting rid
of it using $Session->{'companyrowref'} = ''; and %{$Session} = (); both to
no avail. Can someone give me any ideas as to how I should be handling
this and also how I might be able to get rid of that bad key in MLDBM?
Thanks,
Peter Beardsley
Appropriate Solutions, Inc.
pbeardsley[AT]appropriatesolutions.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]