|
Re: saving results into a session?: msg#00086lang.perl.modules.dbi.rose-db-object
On Jun 30, 2006, at 3:12 PM, John Siracusa wrote: > Rose::DB has hooks for Storable. Have you read this? > http://search.cpan.org/dist/Rose-DB/lib/Rose/DB.pm#SERIALIZATION yes. i saw that, but it was primarily concerned with thawing objects (i *assumed* the hooks are there because of issues in thawing, not serializing). my issue was that i couldn't get a rosedb object to serialize at all using apache session -- which by default uses storable. > Can you provide some self-contained sample code (preferably some that > works outside of mod_perl, if possible) to reproduce the problem? no, its tied heavily into mp and a custom framework which would be damn near impossible to pull out i think what i'm going to do is this: loop the resultset and store the data into my session stash the rosedb item in my context object if called with a special flag it'd be best not to have the rdb-object in a session anyways. i try to keep session data into a structure that has pure data and can serialize into json/yaml, as i often need to share between mod_perl and python or php. | - - - - - - - - - - - - - - - - - - - - | RoadSound.com / Indie-Rock.net | Collaborative Online Management And Syndication Tools | - - - - - - - - - - - - - - - - - - - - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: saving results into a session?, John Siracusa |
|---|---|
| Next by Date: | Re: saving results into a session?, John Siracusa |
| Previous by Thread: | Re: saving results into a session?, John Siracusa |
| Next by Thread: | Re: saving results into a session?, John Siracusa |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |