denasio — 2011-08-27T06:08:59-04:00 — #1
If you use session on every page of a heavy traffic website, will this significantly reduce the performance of your server? Or not at all?
starlion — 2011-08-27T06:22:10-04:00 — #2
denasio — 2011-08-28T07:55:47-04:00 — #3
Say a website with 50.000 hits a day.
starlion — 2011-08-28T09:55:41-04:00 — #4
~2000 hits an hour.. shouldnt be too much of a drag, unless you're doing something silly like filling the session with files.
denasio — 2011-08-28T10:17:12-04:00 — #5
What do you mean with filling the session with files?
hostasp — 2011-08-28T11:08:25-04:00 — #6
if session variables are stored in RAM then its going to slowly bring down the performance of server and if it is on shared web hosting then the web host would haver restricted by allocation of m/y per web app and that might shut down your website for sometime when there is a peak traffic.
starlion — 2011-08-28T23:32:20-04:00 — #7
$_SESSION['user pic'] = file_get_contents(somefile);