SignOut() doesnt work??

Posted on 2011-10-06
Last Modified: 2012-05-12
Hi all,

At the logoff page from our website i do following:

But the user isnt Signed out at all,
when i read the membership.GetUser ill get the providerkey back of the person who is trying to logoff  (Response.Write(Membership.GetUser().ProviderUserKey.ToString()))

Am i missing something??

Question by:paulley
    LVL 14

    Expert Comment

    I don't know so much from experience, but this may help you out:

    Author Comment

    @quizwedge: tried that one already without success :(

    must say: I'm using cross-side logins
    Im loggin on at than i move to, at this point im loggin off
    the return url is presented ( and at that point of time the Membership.GetUser() is returning te currently logged off user
    LVL 14

    Expert Comment

    Are you trying to log off of from I don't have an answer, at least yet, for that, but just trying to clarify for anyone else that comes across this question.

    Author Comment

    Thank you,

    Yes, im sharing the login session betweeen both sites, therefor ive enabled crosssite login in the web.config.

    So it can be possible that a user Logs in on the domainA site, moves to the part, does his accounting thing, and logs off in that site.

    Hope this is clear :D
    LVL 14

    Accepted Solution

    About to head to bed, but wanted to throw out one more suggestion. Since you're doing cross-site stuff anyway, what about a page at that you can call from Basically, ignore the advice in this article so that you can do cross-site requests:

    Would reducing the ticket lifetime help? It still wouldn't be an immediate logout, but you could set it to 1 minute.

    Finally, there are some suggestions at for which I'm currently too tired to figure out if they apply or not. They might, so I'm including them. :)

    Author Closing Comment

    Problem still exist. looking for workaround.
    Thanx for the replies

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
    Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now