Auto login to wordpress when logged in from another site. (2 posts)

  1. idcoder
    Posted 5 years ago #

    I am trying to integrate wordpress to an existing site.
    This is my directory structure.
    http://localhost/project => The front end.

    http://localhost/project/admin => The back end.
    I have a different table for admin credentials.

    Now i have installed wordpress into my site. ie.

    What i want is when i login to my site, and click on blog, i should be able to directly log in to wordpress and start posting.

    i have heard that it is possible through wordpress cookies but am not sure. Is this the right way of directory structure? thanks..

  2. idcoder
    Posted 5 years ago #

    ok..after a search, i found out that the cookie is double hashed for security reasons. what i want is when i login to my custom admin account, i set the cookie my self and so wordpress can check for the cookie and auto login.

    The cookie name is generated as follows.
    $cookie_name = "wordpress_".md5($siturl);

    Now i need to find the cookie value and how it is generated.

Topic Closed

This topic has been closed to new replies.

About this Topic