jquery - Saving array in PHP Sessions -


this question has answer here:

would saving large array in php session hard on server? "large" array, mean array has perhaps 500 elements each element having 100 fields.

i have thousands of users doing process several times / minute.

first, brief intro session handling in php:

when open session, cookie created contains id of session, , sent client. php use path defined in session.save_path save file using id filename ( reference ).

what mean in case? means you'll creating additional bottleneck (disk i/o 1 of slowest things in setups) because you'll writing/reading files time.

database servers have tons of code handle kind of latency, might beneficial use table in database has serialized array string, keyed id in $_session.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -