Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users

kill user Session

 

 

Zope users RSS feed   Index | Next | Previous | View Threaded


vaibhav4947 at gmail

Sep 17, 2008, 6:24 AM

Post #1 of 3 (856 views)
Permalink
kill user Session

Dear all,
I create logout page in my site when user want to logout it will
submit the page of page submit i called "manage_zmi_logout" function .
which promt me for again login user name password window i want redirect
user to login page but if redirect whiout calling "manage_zmi_logout"
function user not actualy logout from zope is any other way to kill user
session please tell me.

Thanks

vaibhi


tino at wildenhain

Sep 17, 2008, 6:28 AM

Post #2 of 3 (814 views)
Permalink
Re: kill user Session [In reply to]

vaibhav pol wrote:
> Dear all,
> I create logout page in my site when user want to logout it
> will submit the page of page submit i called "manage_zmi_logout"
> function . which promt me for again login user name password window i
> want redirect user to login page but if redirect whiout calling
> "manage_zmi_logout" function user not actualy logout from zope is any
> other way to kill user session please tell me.

Is there a question somewhere?

Looks like you are trying to log out a "basic auth". This is not
really possible - the protocol has nothing to support it.
What zope does is using a dirty trick - most browsers expire
sending the auth header when they get a 401 response (look up your
copy of rfc2616).

What you probably want is to use a cookie based authorization.

Did you already explore zope PAS?

Cheers
Tino
Attachments: smime.p7s (3.17 KB)


vaibhav4947 at gmail

Sep 17, 2008, 6:54 AM

Post #3 of 3 (816 views)
Permalink
Re: kill user Session [In reply to]

Hi,
Thank you for your quick replay. I am using CookieCrumbler product
which does cookie based authentication. The product modify the client
request and server response but when user want to log out it calling the
"manage_zmi_logout" functaion which pass basic authenticate in response
header that's why it calling login window . I don't want to show any
window and also i want to fully logout user from zope is any way to do
that .

Thank and Regards,
vaibhi




On Wed, Sep 17, 2008 at 6:58 PM, Tino Wildenhain <tino [at] wildenhain> wrote:

> vaibhav pol wrote:
>
>> Dear all,
>> I create logout page in my site when user want to logout it will
>> submit the page of page submit i called "manage_zmi_logout" function .
>> which promt me for again login user name password window i want redirect
>> user to login page but if redirect whiout calling "manage_zmi_logout"
>> function user not actualy logout from zope is any other way to kill user
>> session please tell me.
>>
>
> Is there a question somewhere?
>
> Looks like you are trying to log out a "basic auth". This is not
> really possible - the protocol has nothing to support it.
> What zope does is using a dirty trick - most browsers expire
> sending the auth header when they get a 401 response (look up your
> copy of rfc2616).
>
> What you probably want is to use a cookie based authorization.
>
> Did you already explore zope PAS?
>
> Cheers
> Tino
>

Zope users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.