Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 16th, 2002, 09:43 PM
estron estron is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Posts: 40 estron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
session management in Python

Ok, couple of quick questions.

I've dropped myself in the deep-end and started to write some cgi apps. I figured since I know a couple of other languages I should be able to pick this up moderately fast. So far, I can do template systems and interact with mysql databases.

Heres my main problem right now. I'm used to using PHP's $_SESSION vars and wanted to know if there was a module (like that of MySQLdb) which I can plug-in and allow persistant data control on my applications.

Could someone point me in the right direction? I've looked at twister and quixote, but both seem to be large "complete applications". Since I'm trying to learn Python, I'd like to build something from the ground up. I've seen a session. module elsewhere, but wasn't sure if it would be what I needed. It looked to be a .so file like that of MySQLdb.

Also, are there any predefined datatypes like those of PHP's $_SERVER vars?

I know I'm being too comparitive of PHP, but give me a break

Any help on this matter would be greatly appreciated. If only I could get this sesison management working, I'd have no need of PHP!

Yours,
estron

Reply With Quote
  #2  
Old September 18th, 2002, 06:44 PM
ZeUs's Avatar
ZeUs ZeUs is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: St. George, Utah
Posts: 63 ZeUs User rank is Sergeant Major (2000 - 5000 Reputation Level)ZeUs User rank is Sergeant Major (2000 - 5000 Reputation Level)ZeUs User rank is Sergeant Major (2000 - 5000 Reputation Level)ZeUs User rank is Sergeant Major (2000 - 5000 Reputation Level)ZeUs User rank is Sergeant Major (2000 - 5000 Reputation Level)ZeUs User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 36
Sorry, can't help you much when it comes to sessions in Python, but the Python-based Zope does have sessioning, along with a lot more that may help you develop Python-based websites.

(BTW, Zope is what powers the main DevShed.com site.)
__________________
Lucas Marshall

Reply With Quote
  #3  
Old September 20th, 2002, 01:10 AM
Hartmann's Avatar
Hartmann Hartmann is offline
chown python:users\ /world
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Texas Tech
Posts: 95 Hartmann User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 13
I don't think there is session support with Python. You can do cookies, but I am pretty sure sessions are not supported.
__________________
Hartmann
badice.com

Reply With Quote
  #4  
Old October 3rd, 2003, 04:14 PM
geskerrett geskerrett is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Nomadic
Posts: 14 geskerrett User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I was wondering if "session management" - similiar to php's $_SESSION variables was now available in python version 2.3 ?

Reply With Quote
  #5  
Old October 3rd, 2003, 07:35 PM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,537 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 18 h 17 m 47 sec
Reputation Power: 68
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
I've been ticking over writing a session module in my head but i think it's along way off being usable. As far as i'm aware the only sessioning module available is packages with Spyce (http://spyce.sourceforge.net) and so wont really work with Python CGI..

Mark.
__________________
programming language development: www.netytan.com Hula


Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > session management in Python

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap