Hi Gael, It is possible to store sessions in the db, however consider that it will slow down the system if you have such a high load.
A faster solution is to store sessions in memory: http://web2py.com/books/default/chapter/29/13?search=cache#Sessions-in-memcache Read that part of the doc, there are quite a few type of session handling recipes. Regards, FeZ 2019. július 12., péntek 10:00:03 UTC+2 időpontban Gaël Princivalle a következőt írta: > > Hi all. > > In my sessions folder all sessions are stored in separated sub-folders, > 068,069... > The file system don't accept more than 512 sub-folders in a folder. > When I reach 512 sub-folders the website is down. > Now for avoiding this problem I delete all the sessions with a crontab job > every 12 hours, but it's not enough. > > Obviously I can imagine that deleting all the sessions means also > disconnecting all the users, that's not a good thing. > > Can I store the sessions in the DB instead of the file system? > > And what about that? I don't understand where I must add it, and it seems > that the sessions storage for my website works already like that, > http://web2py.com/books/default/chapter/29/04/the-core#Separate-sessions > > Thanks. > > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/f01791a8-26a2-4f02-911c-66aec5a53f24%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.