Trouble storing object in session variable (ActivePython/IIS)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Robin Edgar Hansen

    Trouble storing object in session variable (ActivePython/IIS)

    Hi!

    I'd like to store an object in a session variable and thus keep it
    'alive' for the entire session. More precisely I wanted to do this
    (possibly in Application_OnS tart()):

    import telnetlib
    cli = telnetlib.Telne t("localhost",9 999)
    Session.SetValu e("cli",cli)

    BUT, it seems only simple variables can be stored as session
    variables. Have I missed something (being new to the Python/ASP
    combo)? Comments would be much appreciated. Forgive me for bringing up
    a subject already discussed, but my searching thus far has been to no
    avail. Perhaps someone can offer an alternative solution? I should
    say, that using Apache is unfortunately not an option at this time;
    however I do aim to keep my options open.

    Thank you
    -Robin
Working...