Is there any way to implement object persistence with Apache::Session?
I'd like to do something like this (though I'm not sure how):
# during some point in application (throwing object into session data)
my $user = MyMods::User->new();
$user->fetch_by_id(1234);
$session{user} = $user;
# during some other request (pulling object out)
my $user = $session{user};
my $login = $user->login();
print("$login\n");
I'm sure it's more complicated then this. Any help would be appreciated.
Thank you in advance.
Ian