Thomas Weibel
2007-Apr-19 18:58 UTC
Save sessions on file system instead of database table?
Hi Is there a way to save session data on the file system (like in Rails) instead of a database table? The reason I''m asking is, that I''m writing a Camping application without using ActiveRecord (mostly for learning purposes) and I don''t want to use ActiveRecord just for sessions. Thanks, Thomas -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/camping-list/attachments/20070419/14ddcda0/attachment.bin
why the lucky stiff
2007-Apr-19 21:14 UTC
Save sessions on file system instead of database table?
On Thu, Apr 19, 2007 at 08:58:09PM +0200, Thomas Weibel wrote:> Is there a way to save session data on the file system (like in Rails) > instead of a database table?Well, you could probably use CGI::Session (which comes with Ruby) and try to tie together that and Camping::Session. Or you could write your own. I''d really like Camping::Session to start using shared memory, something like memcached. _why
I have written a camping-session container for memcached - I can put it somewhere availible... I have never tried to compile a rubygem - and dont know if that is the way to put an extension like this? /Dan On 4/19/07, why the lucky stiff <why at whytheluckystiff.net> wrote:> On Thu, Apr 19, 2007 at 08:58:09PM +0200, Thomas Weibel wrote: > > Is there a way to save session data on the file system (like in Rails) > > instead of a database table? > > Well, you could probably use CGI::Session (which comes with Ruby) > and try to tie together that and Camping::Session. > > Or you could write your own. I''d really like Camping::Session to > start using shared memory, something like memcached. > > _why > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >
Nic Williams
2007-Apr-20 08:15 UTC
Save sessions on file system instead of database table?
Try http://newgem.rubyforge.org and see if that helps start your gem. Nic On 4/20/07, Dan Thrue <dan at anotherdan.com> wrote:> > I have written a camping-session container for memcached - I can put > it somewhere availible... > > I have never tried to compile a rubygem - and dont know if that is the > way to put an extension like this? > > /Dan > > On 4/19/07, why the lucky stiff <why at whytheluckystiff.net> wrote: > > On Thu, Apr 19, 2007 at 08:58:09PM +0200, Thomas Weibel wrote: > > > Is there a way to save session data on the file system (like in Rails) > > > instead of a database table? > > > > Well, you could probably use CGI::Session (which comes with Ruby) > > and try to tie together that and Camping::Session. > > > > Or you could write your own. I''d really like Camping::Session to > > start using shared memory, something like memcached. > > > > _why > > _______________________________________________ > > Camping-list mailing list > > Camping-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/camping-list > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >-- Dr Nic Williams http://www.drnicwilliams.com - Ruby/Rails/Javascript/Web2.0 skype: nicwilliams (p) +61 7 3102 3237 (Finds me anywhere in the world, via Skype) (m) +4673 768 1389 (Swedish mobile) (f) +61 7 3305 7572 (sends fax to my email) Bj?rnsonsgatan 153, 16 844 Bromma, Sweden -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20070420/81bf5451/attachment-0001.html
It looks as if I can easily create a gem - I will try this tonight. Thanks... On 4/20/07, Nic Williams <drnicwilliams at gmail.com> wrote:> Try http://newgem.rubyforge.org and see if that helps start your gem. > > Nic > > > On 4/20/07, Dan Thrue < dan at anotherdan.com> wrote: > > I have written a camping-session container for memcached - I can put > > it somewhere availible... > > > > I have never tried to compile a rubygem - and dont know if that is the > > way to put an extension like this? > > > > /Dan > > > > On 4/19/07, why the lucky stiff < why at whytheluckystiff.net> wrote: > > > On Thu, Apr 19, 2007 at 08:58:09PM +0200, Thomas Weibel wrote: > > > > Is there a way to save session data on the file system (like in Rails) > > > > instead of a database table? > > > > > > Well, you could probably use CGI::Session (which comes with Ruby) > > > and try to tie together that and Camping::Session. > > > > > > Or you could write your own. I''d really like Camping::Session to > > > start using shared memory, something like memcached. > > > > > > _why > > > _______________________________________________ > > > Camping-list mailing list > > > Camping-list at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/camping-list > > > > > _______________________________________________ > > Camping-list mailing list > > Camping-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/camping-list > > > > > > -- > Dr Nic Williams > http://www.drnicwilliams.com - Ruby/Rails/Javascript/Web2.0 > skype: nicwilliams > (p) +61 7 3102 3237 (Finds me anywhere in the world, via Skype) > (m) +4673 768 1389 (Swedish mobile) > (f) +61 7 3305 7572 (sends fax to my email) > Bj?rnsonsgatan 153, 16 844 Bromma, Sweden > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >