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
Post a Comment