Support » Fixing WordPress » Issue w/passwords, siteurl, cookies

  • Resolved etoile


    I am using WP installed at and my blog is output at Unfortunately this seems to have broken the cookie-setting that goes along with password-protected posts. When a user enters the password to view the post, they are sent back to the main blog page and the post is not unlocked.

    I poked around in places like pluggable-functions and found things like siteurl etc, but I’m not sure what I need to adjust. Does anybody have suggestions for this?


Viewing 6 replies - 1 through 6 (of 6 total)
  • The issue is probably complicated by the cross domain names. Passwords and cookies tend to be in the root directory.

    Try researching how to handle passwords, cookie, and so on with .htaccess rewrites and redirects. Your installation of WordPress is very specialized and your issue is kinda outside of the WordPress parameters. Maybe someone else will have more specific info.

    How far along are you in setup? If you’re just getting started, I’d suggest installing WordPress in the /journal directory instead of the /wordpress directory. Depending on your host, if you created a subdomain of it probably created a directory by that name in your public_html folder (or it may be called “www” or something similar) and you should be able to ftp the WordPress files there the same as if it were a directory instead of a subdomain.

    tomhanna: I migrated from MT to WP a couple of weeks ago. Because of the way I’ve set up my redirects (to preserve MT permalinks), having the WP files in the /journal directory would probably be very untidy. I do know about subdomains actually being directories, thanks. 😉 I can look into putting the WP files into /journal, but…it just sounds icky.

    Lorelle: I don’t actually think this is outside the scope of what WP should be able to do, although perhaps I should look into writing this as a plugin. I know there are others who have come up with this same question – I did find it buried in some old support threads but I figured I’d phrase it my own way. I think you have suggested a couple of good keywords for me though – I have an idea of where to go now.

    Thanks to you both – and more suggestions are very welcome!

    Okay, I found a couple of possibilities, but I’m not 100% sure how to implement them with WP.

    This one is supposedly simple and involves some session_start stuff that I can sort of grasp.

    This one is more complex and definitely over my head.

    Does anybody have suggestions on what to do with these?

    Also, this seems to indicate that if the cookie is set as then it should work on and which is what I had been expecting to do. I’m just not sure where to tell WP that I want the cookie to be set for instead of whatever it’s being set for.

    After messing about a bit with vars.php and some other things, I gave up and switched everything to the journal directory. Ah well. Passwords working fine now. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Issue w/passwords, siteurl, cookies’ is closed to new replies.