CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Re: [pavan538] how to store class object in perl session: Edit Log



wickedxter
User

Dec 29, 2012, 5:34 PM


Views: 1707
Re: [pavan538] how to store class object in perl session


Code
 
#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)


Edit Log:
Post edited by wickedxter (User) on Dec 29, 2012, 5:42 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives