Re: No Cookie: how to implement session?
- From: "Sullivan WxPyQtKinter" <sullivanz.pku@xxxxxxxxx>
- Date: 28 Mar 2006 21:52:52 -0800
As you said, ....There is no solution? I mean, tracing a real session
without using tricks like hidden field and cookies in CGI script?
Dennis Lee Bieber 写道:
On 28 Mar 2006 09:40:24 -0800, "Sullivan WxPyQtKinter"
<sullivanz.pku@xxxxxxxxx> declaimed the following in comp.lang.python:
I do not want to use Cookies in my site since not all web browserYes... And watch them flounder on sites that use cookies /for/ a
support it well and sometimes people close cookie functioning for
security reasons.
form of security (ie, those sites that require logins...) Cookies can be
set to expire, so the "session" can time-out... whereas...
I tried to add hidden field with a sessionID in every python CGI script
generated web pages, so everytime my client POST a request, the server
This would imply that a client could start a session today, and
finally submit tomorrow... There's no real time-out capability unless
you run some background timer thread for each "session ID"...
will retrieve the sessionID and decide if it is in the same session.
However, since python cgi do not have a function for redirecting to a
page, I use Location: url http head or <body
Isn't redirect normally the responsibility of the web server
/before/ invoking the CGI script itself? I'll concede I'm weak on that
level of detail.
Really wish python would have session management or equivalent in
standard CGI module~~~~
The standard CGI module is only the lowest common base for dynamic
web pages. The technology goes back decades, possibly even predating
cookies. Look at the name: Common Gateway Interface... It's a building
block responsible for getting submitted form data, as passed by the web
server environment, and returning generated data -- the interface
between an application and the web server. All else must be built on top
of it -- hence separate modules for Cookie control, etc.
--
> ============================================================== <
> wlfraed@xxxxxxxxxxxxx | Wulfraed Dennis Lee Bieber KD6MOG <
> wulfraed@xxxxxx | Bestiaria Support Staff <
> ============================================================== <
> Home Page: <http://www.dm.net/~wulfraed/> <
> Overflow Page: <http://wlfraed.home.netcom.com/> <
.
- Follow-Ups:
- Re: No Cookie: how to implement session?
- From: I V
- Re: No Cookie: how to implement session?
- From: Alex Martelli
- Re: No Cookie: how to implement session?
- References:
- No Cookie: how to implement session?
- From: Sullivan WxPyQtKinter
- No Cookie: how to implement session?
- Prev by Date: Re: any() and all() on empty list?
- Next by Date: Re: No Cookie: how to implement session?
- Previous by thread: Re: No Cookie: how to implement session?
- Next by thread: Re: No Cookie: how to implement session?
- Index(es):
Relevant Pages
|
|