• Hi,

    Usually when a website uses default php session (a cookie named PHPSESSID) one can access a specific session through GET parameter (For example: https://www.site.com\index.php?PHPSESSID=12345678). I have checked and found out that WordPress uses different way to save session states. It passes three cookies. For example:
    wordpress_test_cookie=WP+Cookie+check
    wordpressuser_8ce502ee088766b3cb38163c9d2ec8b9=alkhimey
    wordpresspass_8ce502ee088766b3cb38163c9d2ec8b9=21f795143df23d5a1d564501cc430e9f

    I can not figure out how to access a specific session throwgh GET params. Is it possible at all with WP?
    Even if you have insights of how to make WP work with cookieless sessions this would give me some clue.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • $_GET is for things in the URL.

    $_COOKIE is for cookies.

    There’s also $_SESSION.

    Read up on php superglobals.

    If you want to figure out real quickly where something like that is stored, make a little plugin (or edit your theme) to do this:

    <?php
    var_dump($_GET);
    var_dump($_COOKIE);
    var_dump($_SESSION);
    ?>
    Thread Starter alkhimey

    (@alkhimey)

    Sorry, but you did not understand my question.

    I want a way to access a session by passing GET parameter with id of a session. PHP default sessions allows this (see my example).
    WP however doesn’t use php sessions, but it’s own custom cookies.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Retrieve session with GET parameter.’ is closed to new replies.