Forums

Create logout link in subdomain (3 posts)

  1. _cassius_
    Member
    Posted 2 years ago #

    Hello All!

    I have a WP installed and there is also a subdomain with our own engine.
    There is a simple user tracking system with login form. The login works fine but how to create right logout link for this subdomain?
    If i will create a link using wp_logout_url(get_permalink()) function, the system throws an error...the nonce variable for logout is different in wordpress and our subdomain...

    Has anybody the solution?

    Thank you in advance.

  2. Shane G
    Member
    Posted 2 years ago #

    Hi,

    Refer this article:

    http://codex.wordpress.org/Function_Reference/wp_logout_url

    Thanks,

    Shane G.

  3. _cassius_
    Member
    Posted 2 years ago #

    Yes, i've studied this function..
    may be I've missed something...

    I need to transfer the nonce variable to subdomain somehow or generate a correct link..when i create a logout link after successful login using wp_logout_url(get_permalink()) the nonce variable is not the same as in logout link in main wordpress site...

Topic Closed

This topic has been closed to new replies.

About this Topic