Re: How does php server identify that the particular session belongs to particular user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2010-06-11 at 15:13 +0530, Peter wrote:

> Hi Ashley,
> 
> Thanks for your answer.
> 
> When too many users log in at the same time, the server gets loaded
> with multiple sessions  files that leads to complexity and crashes the
> server. In such cases how do we handle this ?
> 
> Thanks in advance
> 
> Peter
> 
> 
> Ashley Sheridan wrote: 
> 
> > On Fri, 2010-06-11 at 13:01 +0530, Peter wrote:
> > 
> >   
> > 
> > > Hi All,
> > > 
> > > My Question is "How does php server identify that the particular session 
> > > belongs to particular user?"
> > > 
> > > Please help me out
> > > 
> > > Regards
> > > Peter.m
> > > 
> > >     
> > 
> > 
> > 
> > All the session data is stored on the server either in a database, file
> > or memory against a unique ID value. The server handles how this is
> > done, and it's likely you won't ever need to get involved with changing
> > how it does things.
> > 
> > >From the client-side of things; the user agent (browser) sends this
> > unique ID either as part of the URL or with the headers as a post
> > variable, which is why you may see a PHP_SESSION_ID (or something
> > similar) index in the $_REQUEST array when you use session_start() in
> > your scripts.
> > 
> > Has this helped?
> > 
> > Thanks,
> > Ash
> > http://www.ashleysheridan.co.uk
> > 
> > 
> > 
> >   


I don't think it's the sessions that are crashing your server, it's more
than likely something else. What is the server load when you notice the
crashes? How many people are visiting your site simultaneously at that
point?

Thanks,
Ash
http://www.ashleysheridan.co.uk



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux