Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Session variables?

Reply
Thread Tools

Session variables?

 
 
Steve
Guest
Posts: n/a
 
      04-05-2004
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

 
Reply With Quote
 
 
 
 
Paul Rubin
Guest
Posts: n/a
 
      04-05-2004
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.
 
Reply With Quote
 
 
 
 
Tuure Laurinolli
Guest
Posts: n/a
 
      04-05-2004
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Session Timeout problems-web.confg session state and IIS session s =?Utf-8?B?Um9iSEs=?= ASP .Net 4 04-11-2007 04:52 PM
Unable to serialize the session state. Please note that non-serializable objects or MarshalByRef objects are not permitted when session state mode is 'StateServer' or 'SQLServer'. Mike Larkin ASP .Net 1 05-23-2005 12:33 PM
Session State - What does it take to establish one single ASP.NET session per "browser session" Jeff Smythe ASP .Net 3 01-02-2004 04:10 AM
How can I "know" the difference between a session timed out and a session that did session.abort? Jazzis ASP General 2 09-23-2003 07:16 AM
Which is faster? Dim dv As New DataView(session("myDataTable")) or CType(session("myDataTable")) Andreas Klemt ASP .Net 1 07-23-2003 12:18 AM



Advertisments