Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

session logs fill temp dir
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=3402
Page 1 of 1

Author:  gimmelight [ 5. Sep 2012, 15:55 ]
Post subject:  session logs fill temp dir

hello

i have tiny web gallery running in both Windows/IIS and Linux/apache, and my temporary directories (c:\windows\temp and /var/lib/php5) fill my harddisk with session logs, how can i configure TWG so there won't be any junk in my temporary directories? i have tried disabling the option "Enable session caching of directories and files" as administrator but that doesn't seem to have any effect at all.

tnx
luc

Author:  gimmelight [ 5. Sep 2012, 16:42 ]
Post subject:  Re: session logs fill temp dir

and i forgot to mention mij TWG version, it's 1.8.8
i have already tried editing my_config.php and config.php but i couldn't find an option that disables the session logs

tnx

Author:  TinyWebGallery [ 6. Sep 2012, 14:08 ]
Post subject:  Re: session logs fill temp dir

What is written?
Because TWG has no session log.

Best Michael

Author:  gimmelight [ 6. Sep 2012, 16:20 ]
Post subject:  Re: session logs fill temp dir

hello

files are written with names that start with "sess" , like the file: "sess_p403uhdf1c7f115idvasoi4vv0" , i have no idea what those files are for or what is stored...

tnx

Author:  TinyWebGallery [ 6. Sep 2012, 20:24 ]
Post subject:  Re: session logs fill temp dir

This is the normal php that should be removed by your once it has .

best,

Author:  gimmelight [ 9. Sep 2012, 14:39 ]
Post subject:  Re: session logs fill temp dir

hello

so you say those files are not created by TWG, but by php. but do you or anyone else know how to configure php in a way so those files are not created, because i don't know php that well and i now still have the problem that those files are created (some days more than a thousand) and it fills up my hard drive, so my new question is: does anyone know how to configure php in a way those "sess_" files are not created?

tnx
luc

Author:  TinyWebGallery [ 11. Sep 2012, 14:16 ]
Post subject:  Re: session logs fill temp dir

do you have several thousands users a day in the gallery?

Because one file per active user should exist an deleted after the session timeout by your server.

Best Michael

Author:  gimmelight [ 11. Sep 2012, 16:04 ]
Post subject:  Re: session logs fill temp dir

i have that many visitors, not because of the contents of the site, but because of the name(URL) of the site , and the site is mostly used to test new things and programs, like twg

but every time a person visits the site a "sess_" file is created and then never deleted

i can make a cron-job ( i assume you know what that is) to delete the contents of the temp directory every week or so, but that's a quick and dirty fix and i don't want to resort to that, because that only fixes the symptoms, not the problem

tnx
luc

Author:  TinyWebGallery [ 12. Sep 2012, 14:23 ]
Post subject:  Re: session logs fill temp dir

plese read
http://stackoverflow.com/questions/7652 ... ion-folder

Best Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/