Re: Looping through session variables



Jürgen Exner <jurgenex@xxxxxxxxxxx> writes:

However, I am pretty sure that this module provides methods or functions
to retrieve those values. You should use them instead of rolling your
own code because it is a very bad idea to take advantage of
implementation interna of a module. Those can change at any time and
then you are screwed.

Agree 100%, but it turns out that PHP::Session only provides a simple
one-at-a-time get() method:

sub get {
my($self, $key) = @_;
return $self->{_data}->{$key};
}

Sometimes, an ugly hack is the only option... :-(

sherm--

--
Sherm Pendley
<http://camelbones.sourceforge.net>
Cocoa Developer
.