http://qs321.pair.com?node_id=1083525


in reply to Re: Execute code after session expire
in thread Execute code after session expire

My situation is like : I made one web site where user can upload text file. I want to delete that text file from my server when session will expire for that particular user. I also want to set the time for 10 min for session expire.
  • Comment on Re^2: Execute code after session expire

Replies are listed 'Best First'.
Re^3: Execute code after session expire
by roboticus (Chancellor) on Apr 24, 2014 at 11:04 UTC

    rjlt17@gmail.com:

    OK, then when you create your text files, log them into a database along with their expiration date. Then have a cron job wake up every five minutes, and run a script to delete all files whose expiration date has passed.

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.

      Hi,Roboticus, Thanks a lot for you suggestion. Can you give me one example of how I can store the log files in database.
Re^3: Execute code after session expire
by Anonymous Monk on Apr 24, 2014 at 06:52 UTC
    so this "session expire" is some kind of jar of pickles?