471,853 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,853 software developers and data experts.

Session variables?

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
2 2509
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
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.

Similar topics

6 posts views Thread by Lina Manjarres | last post: by
31 posts views Thread by Harry Simpson | last post: by
10 posts views Thread by tshad | last post: by
3 posts views Thread by Alan Wang | last post: by
3 posts views Thread by Phillip N Rounds | last post: by
26 posts views Thread by BillE | last post: by
NeoPa
reply views Thread by NeoPa | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.