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

Session variables?

P: n/a
Hi,

I'm trying to find a clean way of sharing variables across different
python webpages and scripts and I need something like a session variable
for each user. Is this possible in Python? I've been "pickling" stuff
and this doesn't work at all with mutliple users as things get mixed up.
Is there any clean way of doing this? Thanks,
Steve

Jul 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Steve <nospam@nopes> writes:
I'm trying to find a clean way of sharing variables across different
python webpages and scripts and I need something like a session
variable for each user. Is this possible in Python? I've been
"pickling" stuff and this doesn't work at all with mutliple users as
things get mixed up. Is there any clean way of doing this? Thanks,


One way is put all the variables into a browser cookie. You have to
be careful about security when you do that though. Don't use a pickle.
Jul 18 '05 #2

P: n/a
Steve wrote:
Hi,

I'm trying to find a clean way of sharing variables across different
python webpages and scripts and I need something like a session variable
for each user. Is this possible in Python? I've been "pickling" stuff
and this doesn't work at all with mutliple users as things get mixed up.
Is there any clean way of doing this? Thanks,


The session module in jonpy package seems to be a nice base for
sessions, though it lacks some features like explicitly deleting a session.
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.