close Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 4 and Version 5 of SessionState


Ignore:
Timestamp:
Nov 8, 2009, 12:14:47 PM (15 years ago)
Author:
cmlenz
Comment:

s/JSON/pickle

Legend:

Unmodified
Added
Removed
Modified
  • SessionState

    v4 v5  
    2727}}}
    2828
    29 Because all session data is serialized to [http://json.org/ JSON] for transmission, only the basic data types supported by JSON are allowed: strings, integers, floats, and booleans, as well as lists and dictionaries. I consider this an advantage, as it forces you to decouple session data from the classes and data structures used in the application code. Also, the JSON serialization is often significantly more compact than e.g. `pickle`.
     29Data stored in the session needs to serializable using the Python `pickle` mechanism.
    3030
    3131== API Documentation ==