Forums

How does WP set cookies? (4 posts)

  1. tehjrow
    Member
    Posted 1 year ago #

    I'm trying to set a cookie without using wp_set_auth_cookie();

    Anyone know how it sets the cookie? I notice when i'm in as admin the cookie is:

    wordpress_logged_in_2754f66de9452fda63ea624c09f99e19
    with a value of:
    admin%7C1303066839%7C7ce772e02b0f200d07c8bf5c81a8941e

  2. tehjrow
    Member
    Posted 1 year ago #

    I found this, but what does double hash mean??

    When you log into WordPress from http://example.com/wp-login.php, WordPress stores the following two cookies:

    Your user name
    A double-hashed copy of your password

  3. tehjrow
    Member
    Posted 1 year ago #

    Ok, playing around so far i've found that the cookie name is a md5() of the site url.

    EG: md5('http://www.example.com');

  4. tehjrow
    Member
    Posted 1 year ago #

    Still can't figure out what the value of the cookie is...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags