Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Execute code after session expire

by roboticus (Chancellor)
on Apr 24, 2014 at 05:29 UTC ( #1083521=note: print w/replies, xml ) Need Help??


in reply to Execute code after session expire

rjit17@gmail.com--

That depends on the situation. So ... what's the situation? Care to give any clues about your environment and what you're trying to do?

...roboticus

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

Replies are listed 'Best First'.
Re^2: Execute code after session expire
by rjit17@gmail.com (Initiate) on Apr 24, 2014 at 05:56 UTC
    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.

      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.
      so this "session expire" is some kind of jar of pickles?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1083521]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2022-08-18 02:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?