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 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 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 inside don't get
anything... is there a workaround possible? I need to use an include
line instead of pointing to the script and making it output full html
as there are various other scripts run in the html as well, plus I am
hoping to use the cookie-detection script in other ways than just the
home page...

Again, any help is appreciated.

GazaM

-- 
http://mail.python.org/mailman/listinfo/python-list


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 ''

GazaM

-- 
http://mail.python.org/mailman/listinfo/python-list


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 right?

-- 
http://mail.python.org/mailman/listinfo/python-list