Re: cgi - secure sessions

2006-02-02 Thread Fuzzyman
GazaM wrote: > Ok, thanks for all the help guys. It seems that running this type of > script from inside of the html just isn't going to work as needed. > Seems like I'll just have to ditch the .shtml and point directly to a > cgi. This is how the other Python frameworks and sites work, such as >

Re: cgi - secure sessions

2006-02-02 Thread Fuzzyman
GazaM wrote: > Ok, thanks for all the help guys. It seems that running this type of > script from inside of the html just isn't going to work as needed. > Seems like I'll just have to ditch the .shtml and point directly to a > cgi. This is how the other Python frameworks and sites work, such as >

Re: cgi - secure sessions

2006-02-02 Thread Fuzzyman
GazaM wrote: > Ok, thanks for all the help guys. It seems that running this type of > script from inside of the html just isn't going to work as needed. > Seems like I'll just have to ditch the .shtml and point directly to a > cgi. This is how the other Python frameworks and sites work, such as >

Re: cgi - secure sessions

2006-02-02 Thread GazaM
Ok, thanks for all the help guys. It seems that running this type of script from inside of the html just isn't going to work as needed. Seems like I'll just have to ditch the .shtml and point directly to a cgi. This is how the other Python frameworks and sites work, such as reddit and plone etc rig

Re: cgi - secure sessions

2006-02-02 Thread Fuzzyman
GazaM wrote: > wow, those were some seriously quick replies, thanks. I understand that > cookies is the best way to do things, but I didn't explain my problem > well, sorry. > > Basically, I have a blog in the works and I want to have an online > interface for posting. What I have is a cgi script

Re: cgi - secure sessions

2006-02-01 Thread Paul Rubin
"GazaM" <[EMAIL PROTECTED]> writes: > Paul: By server side include I mean simply calling upon the script from > an include line within the html, for example '' Try printing the contents of os.getenv() in your script and see if the cookie data is in there. -- http://mail.python.org/mailman/listinf

Re: cgi - secure sessions

2006-02-01 Thread GazaM
Kirk: I'm using the Cookie module to create/send/read the cookies. The problem is that I can't read session cookies when running the script from a server side include line. Paul: By server side include I mean simply calling upon the script from an include line within the html, for example '' Gaza

Re: cgi - secure sessions

2006-02-01 Thread Paul Rubin
"GazaM" <[EMAIL PROTECTED]> writes: > there will display a login form. Now, the big showstopper here is that, > because session cookies are stored in http headers sent by the client > (afaik) the cgi script can't get any, because the http headers are > passed onto the html file and any cgi scripts

Re: cgi - secure sessions

2006-02-01 Thread Kirk McDonald
GazaM wrote: > What I have is a cgi script run through a server > side include line in the html, which looks for the session cookie, if > it is present will say 'logged in as "user"' and if the cookie isn't > there will display a login form. Now, the big showstopper here is that, > because session

Re: cgi - secure sessions

2006-02-01 Thread GazaM
wow, those were some seriously quick replies, thanks. I understand that cookies is the best way to do things, but I didn't explain my problem well, sorry. Basically, I have a blog in the works and I want to have an online interface for posting. What I have is a cgi script run through a server side

Re: cgi - secure sessions

2006-02-01 Thread Paul Rubin
[EMAIL PROTECTED] writes: > I was just wondering if / how would it be possible to create secure > sessions for a website using Python CGI... I thought of using cookies, > and things looked promising for a while; I could login through a form > which pointed to a cgi script which created sent the use

Re: cgi - secure sessions

2006-02-01 Thread Kirk McDonald
[EMAIL PROTECTED] wrote: > Hey, > > I was just wondering if / how would it be possible to create secure > sessions for a website using Python CGI... I thought of using cookies, > and things looked promising for a while; I could login through a form > which pointed to a cgi script which created sen