I'm tryng to use Apache::Session and store a bunch of data into a
(complex) hash (using FileStore). The weirdest thing, that made me
banging my head for a while was, that when i first initialised the
session, everything was stored fine. But after restoring it and trying
to update it, nothing got updated..
At first it seemed thar it was some weird kind of perl/Apache::Session
thing, that it didn't get updated because i was working on a refference
on the hash
(~ $ref=\$session{key1}; $$ref{foo}="bar";..)
And I put it all back to lengthy writing ($session{key1}{foo}="bar"),
hoping that it will help but of course, it didn't. It did seem a bit odd
in the first place..
Then i was going nowhere for a while, until i put at the end, just
before untie-ing the hash, $session{TIMESTAMP} = time(); and magically
everything got updated and back to normal!!???
Hello? Is there something I'm missing?? Isn't that just plain weird or
is there something deeper?
I'd be very happy if anybody got any ideas on this, because it took me
almost a week of rewriting and doing mumbo-jumbo with my code (which is
kinda good, because it's cleaner now, or will be after i delete all
print STDERR's every 4 lines out ;-)
Btw, I'm using Apache::Session 1.03, because make test on 1.51 is giving
me funny remarks like:
t/99file............flock() on closed filehandle Symbol::GEN1 at
blib/lib/Apache/Session/Lock/File.pm line 109.
flock() on closed filehandle Symbol::GEN3 at
blib/lib/Apache/Session/Lock/File.pm line 109.
t/99file............ok
t/99filelock........flock() on closed filehandle Symbol::GEN1 at
blib/lib/Apache/Session/Lock/File.pm line 109.
t/99filelock........ok
t/99filestore.......ok
t/99flex............flock() on closed filehandle Symbol::GEN1 at
blib/lib/Apache/Session/Lock/File.pm line 109.
Anybody got any ideas on this as well.
But I'll be all happy if the first part gets cleared..
Jure
--
Jure Simsic
email: [EMAIL PROTECTED]