J
jwcarlton
Using PHP::Session, I have a variable like this:
my $session = PHP::Session->new($sid);
print "Content-type: text/html\n\n";
print "Favcolor : " . $session->get('favcolor');
exit;
Can you guys advise me on how to loop through all $session->get()
keys? I've tried everything I can think of, but since $session is not
an actual array, I'm not sure how to effectively loop through it.
FWIW, if I just print $session, it returns somethings like this:
PHP::Session=HASH(0x8c25de0)
TIA,
Jason
my $session = PHP::Session->new($sid);
print "Content-type: text/html\n\n";
print "Favcolor : " . $session->get('favcolor');
exit;
Can you guys advise me on how to loop through all $session->get()
keys? I've tried everything I can think of, but since $session is not
an actual array, I'm not sure how to effectively loop through it.
FWIW, if I just print $session, it returns somethings like this:
PHP::Session=HASH(0x8c25de0)
TIA,
Jason