Does PHP *have* to serialize/unserialize session data between each HTTP request? Or is there a sett
        Posted  
        
            by Pete Alvin
        on Server Fault
        
        See other posts from Server Fault
        
            or by Pete Alvin
        
        
        
        Published on 2010-06-14T11:43:48Z
        Indexed on 
            2010/06/14
            11:53 UTC
        
        
        Read the original article
        Hit count: 367
        
I think I understand why sessions are evil but for snappy client user experience I don't want to have to re-query the database on each HTTP request. (As a comparision, Java servlets can effortlessly keep tons of session objects in memory.)
Can PHP be set to do this or does it have to serialize because it runs from CGI/FastCGI and therefore by definition is a new process each time a request comes in? I will be running PHP using LAMP.
© Server Fault or respective owner