Saving Browser State without Cookies

Orr, Steve sorr at rightnow.com
Thu Feb 7 11:21:53 EST 2002


You're right. Behind the scenes and transparent to the code, the sessions
feature of PHP4 either uses the hidden variables method or the cookie method
depending on browser support, settings in your code, or server-wide
settings. The point is, state management is core PHP functionality which you
get "for free" and you don't have to cut much code to implement it. 

In this regard I'm looking into Albatross. As a welcome departure from the
norm with frameworks, the number of lines of code is actually exceeded by
the number of lines of documentation. ;-)  

Speaking of verbosity, I got your book. :-) Quite comprehensive. Great
job!!! 

In the book you mention Albatross along with many other Python solutions.
(There's so many it's overwhelming to the relative newbie.) Preferring
brevity and simplicity, Albatross looks like a very well engineered
solution. 

It would be great if someone could share their experience with using
Albatross in a real world Python/Web implementation. 

Anyone???????


AtDhVaAnNkCsE,
Steve Orr
 


-----Original Message-----
From: Steve Holden [mailto:sholden at holdenweb.com]
Sent: Thursday, February 07, 2002 7:52 AM
To: python-list at python.org
Subject: Re: Saving Browser State without Cookies


"Orr, Steve" <sorr at rightnow.com> wrote in message
news:mailman.1012938609.3651.python-list at python.org...
> Python Newbie here.
>
> I need to migrate a web application from PHP to Python and I have a
> requirement to save state info WITHOUT using cookies where much of the
state
> data MUST not be visible to the end users. The PHP application allows
users
> to logon to one of several databases using any of a number of Oracle
> user/passwords. The logon info needs to be saved for queries on other
pages
> in the app. With PHP it's easy to avoid cookies by saving this info using
> its session handling functions. Is there an EASY way to do this in Python
> without having to adopt the Mother of all frameworks?
>
Disclaimer: I have never used PHP.

However, *if* PHP allows you to associate requests with session state, then
*either*:

a) it does use cookies, you just don't know about them, or
b) it puts session references in the URL.

There simply isn't any other available mechanism. So maybe what you're
looking for is an interface that hides the cookie implementation from the
programmer?

regards
 Steve
--
Consulting, training, speaking: http://www.holdenweb.com/
Author, Python Web Programming: http://pydish.holdenweb.com/pwp/

"This is Python.  We don't care much about theory, except where it
intersects with useful practice."  Aahz Maruch on c.l.py




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




More information about the Python-list mailing list