cgi/session , deleting old sessions.

Discussion in 'Ruby' started by Robert Gleeson, Sep 15, 2008.

  1. Hi,

    I am wondering how I would go about deleting files created by
    CGI::Session, there is a huge build up of files in /tmp(everytime a new
    session is initiated a new one is created) and I can't think of anyway
    (beside a crontab) of deleting them, or I could use the .delete method
    supplied by cgi/session but this way i need to count on the user logging
    out so i can call .delete, not very efficient either.
    I looked into using MemoryStore but the eruby instance doesn't last long
    enough.

    Any help is greatly appreciated,
    rob
    --
    Posted via http://www.ruby-forum.com/.
     
    Robert Gleeson, Sep 15, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Laurent Bugnion
    Replies:
    2
    Views:
    323
    Laurent Bugnion
    Aug 20, 2006
  2. Harry Barker
    Replies:
    2
    Views:
    529
    Alf P. Steinbach
    Apr 19, 2006
  3. Alessandro
    Replies:
    0
    Views:
    1,944
    Alessandro
    Feb 13, 2009
  4. Bill H

    Deleting old files using stat

    Bill H, Jun 14, 2008, in forum: Perl Misc
    Replies:
    2
    Views:
    101
    Bill H
    Jun 14, 2008
  5. crea
    Replies:
    2
    Views:
    423
    Nobody
    Dec 28, 2012
Loading...

Share This Page