Drupal and Secure Logins using mod_rewrite and manually setting the cookie Part 2

nid

204

vid

204

type

blog

status

1

created

1188669053

changed

1188669053

comment

2

promote

1

sticky

0

revision_timestamp

1188669053

title

Drupal and Secure Logins using mod_rewrite and manually setting the cookie Part 2

body

<p>So you may have tried to do this according to my first blog post on the topic. If you did, you found that problems STILL existed!!</p> <p>So I have created a patch to the securepages module (are you watching Gordon?) to allow this to actually work. And yes! It does work! There are some caveats though</p> <ul> <li>The user login block, which I use to use on my site, won't work in SSL mode unless you limit it to SSL pages only. That means you can't put it on your homepage and have SSL logins. It appears that the user block in core needs to be changed or a replacement block created.</li> <li>You only need one directory in your /sites/ directory for your site and it should be named the same as your domain name- no subdomain. (ex. example.com).</li> <li>Your base_url in your settings file should be the same: example.com</li> </ul> <p>I hope this helps someone.</p>

teaser

So you may have tried to do this according to my first blog post on the topic. If you did, you found that problems STILL existed!! So I have created a patch to the securepages module (are you watching Gordon?) to allow this to actually work. And yes! It does work! There are some caveats though <ul> <li>The user login block, which I use to use on my site, won't work in SSL mode unless you limit it to SSL pages only. That means you can't put it on your homepage and have SSL logins. It appears that the user block in core needs to be changed or a replacement block created.</li>

log

format

1

uid

1

name

davea

picture

data

a:6:{s:6:"submit";s:18:"Create new account";s:7:"form_id";s:13:"user_register";s:7:"contact";i:0;s:5:"block";a:1:{s:2:"og";a:1:{i:4;i:1;}}s:8:"og_email";s:1:"2";s:15:"googleanalytics";a:1:{s:6:"custom";i:0;}}

last_comment_timestamp

1188669053

last_comment_name

NULL

comment_count

0

taxonomy

Array
(
    [66] => stdClass Object
        (
            [tid] => 66
            [vid] => 63
            [name] => drupal
            [description] => 
            [weight] => 0
        )

    [67] => stdClass Object
        (
            [tid] => 67
            [vid] => 63
            [name] => ssl
            [description] => 
            [weight] => 0
        )

)

files

Array
(
)

readmore

1

content

Array
(
    [body] => Array
        (
            [#value] => <p>So you may have tried to do this according to my first blog post on the topic. If you did, you found that problems STILL existed!!</p>
<p>So I have created a patch to the securepages module (are you watching Gordon?) to allow this to actually work. And yes! It does work! There are some caveats though</p>
<ul>
<li>The user login block, which I use to use on my site, won't work in SSL mode unless you limit it to SSL pages only. That means you can't put it on your homepage and have SSL logins. It appears that the user block in core needs to be changed or a replacement block created.</li>
<li>You only need one directory in your /sites/ directory for your site and it should be named  the same as your domain name- no subdomain. (ex. example.com).</li>
<li>Your base_url in your settings file should be the same: example.com</li>
</ul>
<p>I hope this helps someone.</p>

            [#weight] => 0
        )

)