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.

Hundreds and hundreds of session files in /tmp

Discussion in 'General Discussion' started by sexy_guy, Jun 20, 2003.

  1. sexy_guy

    sexy_guy Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    848
    Likes Received:
    0
    Trophy Points:
    16
    I have been watching /tmp for a couple of day when i noticed an increased number of sess_ files accumulating. Today, after 3 days of watching this i have 5 pages, around 600 of them. Why all of a sudden has this increased? Anyone else?

    cPanel.net Support Ticket Number:
     
  2. dthigpen

    dthigpen Active Member

    Joined:
    May 29, 2003
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Apex, NC
    Got any?

    Got any new PHP heavy sites hosted on that box?

    cPanel.net Support Ticket Number:
     
  3. rhood

    rhood Well-Known Member

    Joined:
    Feb 15, 2003
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    You probably have a customer running a site who's PHP scripts are creating a lot of session files.

    You should be able to delete them by doind "cd /tmp" and "rm -f sess*". If it becomes a problem you may need to set up a cron job to automatically delete old PHP sessions from /tmp after a set number of days.

    cPanel.net Support Ticket Number:
     
  4. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    16
    What we these be? They are in tmp dir also.


    12354003223ee7eaa79eb29-k0tBAu cpanel3upload.toyufAACUAFApJvN_8oHAxLtl7X2L

    cPanel.net Support Ticket Number:
     
  5. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    Someone using Cpanel >> File Mgr. to upload files.

    cPanel.net Support Ticket Number:
     
  6. sexy_guy

    sexy_guy Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    848
    Likes Received:
    0
    Trophy Points:
    16
    I thought session files were supposed to appear then dissappear after a while. :confused:

    cPanel.net Support Ticket Number:
     
  7. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    16
    thx Rob

    cPanel.net Support Ticket Number:
     
  8. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    "after a while" seems to be a relative term. ;)

    Probably has something to do with the way the PHP script is storing session files. I have Client who uses Vbulletin and some are over a week old. I don't worry about them though, if they don't get removed then I can always remove them myself.

    Now, if someone could explain the technique for removing a file (which I think was created by Apache) that starts with a dash, that would be most helpful to me. The usual methods (escaping, single quotes, star, etc.) do not seem to work?


    jackal - your welcome :)

    cPanel.net Support Ticket Number:
     
Loading...
Similar Threads - Hundreds hundreds session
  1. morteza
    Replies:
    2
    Views:
    253

Share This Page