Re: simple multiuser considerations



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
.



Relevant Pages

  • simple multiuser considerations
    ... But I have a few questions about real multiuser ... issues which i could not get any tutorials on: ... Then, my session id checking ... in php.ini or anywhere else or worse, take care of it in the script by ...
    (comp.lang.php)
  • Re: How to get all web controls from a page?
    ... > tedious session creation and retrieval task. ... > Karl Seguin wrote: ... >> MY ASP.Net tutorials ... Sounds like that is a much better way than session to ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to get all web controls from a page?
    ... tedious session creation and retrieval task. ... Sounds like that is a much better way than session to ... >> Karl Seguin wrote: ... >>> MY ASP.Net tutorials ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Session losing variables?
    ... I have a script start.php and a second script proceed.php ... // Store these vars in the SESSION array. ... // Strings match, so open logfile, exit if this fails. ... Wether they've disabled cookies? ...
    (comp.lang.php)
  • Re: stupid IE7 question
    ... closer look on session handling. ... Obscure methods like hiding an URI always ... rewrites itself to another script of yours with the session key as the ... I am currently testing a proprietary secure web based ...
    (Pen-Test)