Web devel with python. Whats the best route?

Erno Kuusela erno-news at erno.iki.fi
Tue Jan 9 02:14:49 EST 2001


In article <93cqvi0191h at news1.newsguy.com>, "Alex Martelli"
<aleaxit at yahoo.com> writes:

| "Session continuity" will have to be provided via cookies, but that's
| not really all that hard

note that mod_python and mod_snake are in the same boat (modulo
libraries they may or may not provide?) because they also run
with multiple processes.

lately i've come to the conclusion that the best way to do session
tracking (certainly better than cookies) is to generate a unique id
and put it in the url as a path component. something like
http://my.site/my-program/0dj2/operation or whatever.  you can use map
the unique to (sequence of?) words from id/usr/dict/words if you want
to make the url human-rememberable :)

this has the advantage of
a) not needing cookies enabled in the users browser
b) making the session portable in the sense that you can
   take a url to another machine and have it work
c) making it work with search engines
d) being technically less ugly than cookies

  -- erno




More information about the Python-list mailing list