[Zope] Persistent login

Thierry Florac thierry.florac@onf.fr
09 Jul 2002 10:22:12 +0200


  Hi...

I'd like to keep authentication values persistent in a session, so that
authentication values can be visible while accessing non protected
documents or methods.
I tried to do this in a Python script :

  request = context.REQUEST
  session = request['SESSION']
  session['AUTHENTICATED_USER'] = request['AUTHENTICATED_USER']

but then I receive an error message : 
  Error Type: UnpickleableError
  Error Value: Cannot pickle objects

So what's the best way to keep track of these authentication values ??
(I'm currently using Zope-2.5.1)

Thanks,

  Thierry

-- 
  Linux every day, keeps Dr Watson away...
  http://gpc.tuxfamily.org -- http://www.ulthar.net