What should I consider when choosing a session implementation?

Yesterday, my supervisor told me that a session based on tmp files should be a response to the implementation of the session, and I should abandon any idea of ​​making sessions persistent.

He argues that a file-based session is much faster and more efficient than other options, such as a db or memcached implementation.

What he said was really a shock to my past training experience, so please tell me if he was wrong and why?

Thanks in advance.

+5
source share
2 answers

-. . , , . memecache.

"" . tMP , , , .

0

/dev/shm , memcache, , HTTP- . , db-based Memcached, .

+1

All Articles