[Twisted-web] [Nevow] new chapter about authentication

Manlio Perillo manlio_perillo at libero.it
Sun Aug 6 16:40:33 CDT 2006


Jean-Paul Calderone ha scritto:
> [...]
>
>> I have found an example that needs specialized (non authenticators)
>> sessions.
>>
>> Several e-commerce sites allow costumers to put items into a basket even
>> if they are not authenticated.
> 
> No.  This case is no different from any other.  Cred does not make
> anonymous users a special case: it deals with them in the same way
> it deals with all other users.
> 
> Guard is entirely capable of providing a shopping cart to unauthenticated
> users.
> 

This is not the point.
The point is in having sessions that are not used for authentication.

I have just finished to write a version of guard that *do not* use
sessions for anonymous users.

This means that for dealing for an e-commerce application I have to
create a specialized session.
Hopefully I would like to do:

def BasketSession(Session):
   def __init__(self, ...):
       Session.__init__(self, ...)

       self.basket = []




Regards  Manlio Perillo



More information about the Twisted-web mailing list