The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cron Setup help

Discussion in 'General Discussion' started by RobM, Nov 29, 2003.

  1. RobM

    RobM Active Member

    Joined:
    Aug 15, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    ok, I am trying to setup a cron so that it will go to MYSQL and remove the session during the night in Cpanel

    Example

    database name: My_billing
    database host: localhost
    database user: me
    database password: test
    database table:sessions

    I need it to delete / empty the files in the sessions.

    Thanks
    RobM
     
  2. LordJMann

    LordJMann Well-Known Member

    Joined:
    Jun 15, 2003
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    First you need to make a file that will delete the session entry when you load it, then strap the file location onto a cronjob and set the correct time and you have it working.
     
Loading...

Share This Page