September 16th, 2002, 10:43 PM
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!
September 18th, 2002, 07:44 PM
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.)
September 20th, 2002, 02:10 AM
I don't think there is session support with Python. You can do cookies, but I am pretty sure sessions are not supported.
October 3rd, 2003, 05:14 PM
I was wondering if "session management" - similiar to php's $_SESSION variables was now available in python version 2.3 ?
October 3rd, 2003, 08:35 PM
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..