
wickedxter
User
Dec 29, 2012, 5:34 PM
Views: 1147
|
|
Re: [pavan538] how to store class object in perl session
|
|
|
#this correct new $session? $session = new $session("driver::file",undef,{Directory=>"/tmp"}; $emp = new Emp({name=>'pavan',id=>101}); session->param("emp",$emp); the object is just a perl data tree, so yes you should. What session module are you useing? look in to this http://perldoc.perl.org/Storable.html
(This post was edited by wickedxter on Dec 29, 2012, 5:42 PM)
|