Best place to store large amounts of session data
        Posted  
        
            by audiopleb
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by audiopleb
        
        
        
        Published on 2010-04-29T14:05:09Z
        Indexed on 
            2010/04/29
            14:17 UTC
        
        
        Read the original article
        Hit count: 265
        
php
I'm building an application that needs to store and re-use large amounts of data per session.
So for example, the user selects a large list of list items (say 2000 or significantly more) which have a numeric value as their key then they save that selection and go off to another page, do something else and then come back to the original page and need to load their selections into that page.
What is the quickest and most efficient way of storing and reusing that data? In a text file saved with the session id? In a temp db table? In the session data itself (db sessions so size isn't a limit) using a serialised string or using gzcompress or gzencode?
Any advice or insight would be great!
Thank you!!!!
© Stack Overflow or respective owner