By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,433 Members | 776 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,433 IT Pros & Developers. It's quick & easy.

Trouble storing object in session variable (ActivePython/IIS)

P: n/a
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_OnStart()):

import telnetlib
cli = telnetlib.Telnet("localhost",9999)
Session.SetValue("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
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.