Re: simple multiuser considerations
- From: Justin Koivisto <justin@xxxxxxxxx>
- Date: Thu, 29 Sep 2005 09:13:19 -0500
Joseph S. wrote:
> Hi everyone,
> Managing sessions and cookies looks simple if you go by the varied
> tutorials on the web. But I have a few questions about real multiuser
> issues which i could not get any tutorials on:
>
> 1)say, I have a page doesalot.php on http://www.mysite.com/ which will
> be accessed by say 50 users at a time. Then, my session id checking
> script must run 50 instances, one for each user and the appropriate
> database table must, at the end of that time, get 50 rows, one for each
> session (of course, i've written the db insert code into the page right
> at the top). Does this happen by default or do I have to set something
> in php.ini or anywhere else or worse, take care of it in the script by
> checking for IP via $_SERVER['REMOTE_ADDR'] etc.
>
> 2) If it is just 5-10 users per second maybe it will not be a problem,
> but a worst-case load of say 50-100 requests per second will definitely
> be an issue (assuming my host has given me enough bandwidth). Is there
> some setting for such tuning?
>
> It'll be great if someone could point me to a site or tutorial that
> deals with these issues.
Take a look into session_set_save_handler:
http://us2.php.net/manual/en/function.session-set-save-handler.php
You may find something that will save you a lot of time.
--
Justin Koivisto, ZCE - justin@xxxxxxxxx
http://koivi.com
.
- References:
- simple multiuser considerations
- From: Joseph S.
- simple multiuser considerations
- Prev by Date: Re: php trivia: =>
- Next by Date: Arrays and Pointers
- Previous by thread: simple multiuser considerations
- Next by thread: Re: simple multiuser considerations
- Index(es):
Relevant Pages
|