Storing Objects in a Session

2005-02-01 Thread jonathan vanasco
slightly OT, but i'm doing this in mod_perl! server Apache/2.0.52 (Unix) mod_perl/1.99_16 Perl/v5.8.1 use use Apache::Cookie; use Apache::Request (); use Apache::Session; use Apache::Session::File; is there any way to store an object into an A

Re: Storing Objects in a Session

2005-02-01 Thread David J Radunz
On Tue, 2005-02-01 at 23:52 -0500, jonathan vanasco wrote: > slightly OT, but i'm doing this in mod_perl! > > server > Apache/2.0.52 (Unix) > mod_perl/1.99_16 > Perl/v5.8.1 > > use > use Apache::Cookie; > use Apache::Request (); > use Apache::Session; > u

Re: Storing Objects in a Session

2005-02-01 Thread Perrin Harkins
jonathan vanasco wrote: is there any way to store an object into an Apache Session ? Yes, you put any object in Apache::Session as long as it can be handled by Storable. You'll need to tell us what you tried and what didn't work about it before we can help you more. - Perrin

Re: Storing Objects in a Session

2005-02-02 Thread Jonathan Vanasco
On Feb 2, 2005, at 12:00 AM, David J Radunz wrote: Have you tried to freeze your object and then thaw it on retrieve? perl -MCPAN -e install Storable perldoc Storable On Feb 2, 2005, at 12:28 AM, Perrin Harkins wrote: Yes, you put any object in Apache::Session as long as it can be handled by Stora

Re: Storing Objects in a Session

2005-02-02 Thread Perrin Harkins
On Wed, 2005-02-02 at 12:26 -0500, Jonathan Vanasco wrote: > I never thought of using storable. There's no need for you to use Storable. Apache::Session does it already. Just put your objects in the session. > I thought i could just place an object in the tied session variable and > voila! Yo