Saving Browser State without Cookies

phil hunt philh at comuno.freeserve.co.uk
Thu Feb 7 18:43:42 EST 2002


On Thu, 7 Feb 2002 09:51:53 -0500, Steve Holden <sholden at holdenweb.com> wrote:
>"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.

You could go by the client's IP address. Though IMO this is a bit iffy.


-- 
===== Philip Hunt ===== philh at comuno.freeserve.co.uk =====
Herbivore, a zero-effort email encryption system. Details at:
<http://www.vision25.demon.co.uk/oss/herbivore/intro.html>






More information about the Python-list mailing list