WordPress.org

Ready to get started?Download WordPress

Forums

Add session data and retrieve (4 posts)

  1. FPG
    Member
    Posted 7 years ago #

    I'm running the usermeta and userextra plugins to provide extra information in users profile. I want this information to be stored inside of the WordPress session/cookie so that I can pull this information in other scripts elsewhere on my site.

    If there's a plugin available to modify what session data is held I'd much prefer that but otherwise what pages need to be modified in order to store this info inside the session/cookie?

  2. FPG
    Member
    Posted 7 years ago #

    I found in the wordpress codex: http://codex.wordpress.org/WordPress_Cookies

    That WordPress uses cookies that it creates in the '/wp-includes/pluggable-functions.php' file. I added an additional setcookie function inside of the wp_setcookie function to see if I could create an additional cookie at startup. When I logged out and logged back in the new cookie did not create. Does anyone know why?

  3. mmbc
    Member
    Posted 6 years ago #

    Nobody could answer this?

    Is there a reason that WordPress doesn't want people using their own sessions?

  4. volleyballmaniac
    Member
    Posted 6 years ago #

    try this:
    wordpress.org/support/topic/107006?replies=6

    I dont know if that's what you are looking for, but it describes how to get sessions working.

Topic Closed

This topic has been closed to new replies.

About this Topic