WordPress.org

Ready to get started?Download WordPress

Forums

wordpress cookies and skins? (10 posts)

  1. meriadoctookme
    Member
    Posted 8 years ago #

    Hi,
    I've recently installed WordPress and put it within my already skinned website. I chose not to edit the themes, as just skinning it was easier. Now, I have a problem everytime someone changes the skin, when it goes back to the index (wordpress) the skin reverts to default as though the cookie that was saved was deleted. Does wordpress delete cookies? Is there some way around this so it doesn't interfere with my skins?
    Thank you.

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    WP doesn't touch other cookies.
    It sounds like the cookie just isn't being set properly - something I've had before.

    http://www.alistapart.com/articles/alternate/
    The above works though - used it earlier on a site.

  3. meriadoctookme
    Member
    Posted 8 years ago #

    Well, I know the cookie gets set because every other page on my site will retain the cookie, that is, until I go to the wordpress folder (index.php). I don't really think my skinning is a problem and changing the entire thing seems a little out of the way. Is there maybe some other way of altering WP? Or at least making sure the cookie stays for wordpress too?

  4. meriadoctookme
    Member
    Posted 8 years ago #

    Ok, I'm getting lost with WP. There is definitely something going on with the cookies. WP is obviously setting some but I was wondering if it was somehoe replacing other cookies or at the least, clearing ones out? I really need help on this.
    Here's my site for you to see: http://champagneblue.com

  5. meriadoctookme
    Member
    Posted 8 years ago #

    bump. help?

  6. chuckeroo
    Member
    Posted 8 years ago #

    Shoot! I'm having the same exact problem. If I find a way to fix it I'll come back. Best of luck. =( so complicated

  7. meriadoctookme
    Member
    Posted 8 years ago #

    bump.

  8. tomkinsg
    Member
    Posted 7 years ago #

    Did anyone get cookies working in WordPress... i have the same problem and i believethat i am setting the cookies correctly since non-wordpress parts of the site can access the cookie values.

  9. ideadude
    Member
    Posted 7 years ago #

    Also having the same problem :). It seems like the code running in the WP folder is detecting the cookie but doesn't get the correct value. I'll post if I find an answer.

  10. ideadude
    Member
    Posted 7 years ago #

    Ok. I've got it working for me. It seems like the problem was on the retreaval of the cookie, not the setting of it. I changed this line:

    $c_password = $HTTP_COOKIE_VARS["Winelog_Password"];

    to

    $c_password = $_COOKIE["Winelog_Password"];

Topic Closed

This topic has been closed to new replies.

About this Topic