469,290 Members | 1,913 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,290 developers. It's quick & easy.

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 2460
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
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.