Hi ZopeTeam, We are using zope. We are facing one problem. Whenever we want to logoff from the zope user interface, I have choosed "logout" option and clicked the "Go" button in top of frame then it is showing username and password window. Why it is showing username and password window again?. Once i click the "OK" button it is logging off. So, anybody is give a solution "How to avoid a username, password window whenever we logging off?". Regards, M. Satish
Hi, On 27 Mar 2002, mallavaram satishreddy wrote:
Once i click the "OK" button it is logging off. So, anybody is give a solution "How to avoid a username, password window whenever we logging off?".
AFAIK this is not possible without modifying Zope. In fact Zope logs you out by sending an error code 401 to your browser which then automatically ask for a new username/password. This error code seems to be part of the HTTP protocol, so I don't know what you could do about this. hth. Jerome Alet - alet@unice.fr - http://cortex.unice.fr/~jerome Fac de Medecine de Nice http://wwwmed.unice.fr Tel: (+33) 4 93 37 76 30 Fax: (+33) 4 93 53 15 15 28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE
On 27 Mar 2002, Jerome Alet <alet@unice.fr> wrote:
On 27 Mar 2002, mallavaram satishreddy wrote:
Once i click the "OK" button it is logging off. So, anybody is give a solution "How to avoid a username, password window whenever we logging off?".
AFAIK this is not possible without modifying Zope.
In fact Zope logs you out by sending an error code 401 to your browser which then automatically ask for a new username/password. This error code seems to be part of the HTTP protocol, so I don't know what you could do about this.
If you use Basic Authentication then the password is saved by your browser, and there is no way for a web server to tell your browser to forget the saved password without the browser showing the login dialog again. However, you can set Zope up to use other forms of authentication (e.g. cookies) and the browser can be told to forget cookies. So the answer to your problem is to look up the various ways to do cookie based authentication in Zope. If you are using Zope 2.3 or above then all you have to do is add a CookieCrumbler instance to the folder containing your acl_users. -- Duncan Booth duncan@rcp.co.uk int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3" "\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?
From: "mallavaram satishreddy" <satishr_m@rediffmail.com>
We are using zope. We are facing one problem. Whenever we want to logoff from the zope user interface, I have choosed "logout" option and clicked the "Go" button in top of frame then it is showing username and password window. Why it is showing username and password window again?.
Because after you have logged out, the browser wants you to log in again. It's how http basic security is designed.
participants (4)
-
Duncan Booth -
Jerome Alet -
Lennart Regebro -
mallavaram satishreddy