I have a Drupal 6.17 site. The client has asked that a couple of pages be password protected. So I installed protected_node and assigned a password to the page in question. There is no password prompt, nor does any of the content other than the title appear. What might I have done wrong?

Comments

bobroosth’s picture

Once I set Permissions correctly, I am prompted for a password. BUT that login never seems to be forgotten. In other words, I used FireFox to access the page yesterday. Today I go to the protected page and I am not prompted for a password. Ditto for IE8. If I use Opera to access the page, I am prompted for a password.

Is the permission supposed to be last beyond a single browsing session?

AlexisWilke’s picture

Title: No Prompt for Password » No Prompt for Password when permissions are not set

bobroosth,

I guess I'll have to write some documentation about the installation process.

Otherwise, the permission is indeed saved in the $_SESSION variable at this time, so it is "permanent" (until the session gets deleted.)

I have been wondering about that aspect, we probably want to be able to better control the sessions (duration of the password, clearing all the protected node sessions, etc.)

Thank you.
Alexis

AlexisWilke’s picture

Title: No Prompt for Password when permissions are not set » No Prompt for Password when permissions are not set (non-dying $_SESSIONs)

I will use a date & time in the sessions instead of TRUE so we can easily nullify them. (i.e. ignore old sessions.)

Changed the title a bit too.

Thank you.
Alexis Wilke

AlexisWilke’s picture

Component: Miscellaneous » Code
Assigned: Unassigned » AlexisWilke
Category: support » bug
Priority: Normal » Major
Status: Active » Fixed

That improper $_SESSION is not used anymore.

Let me know if you still have a problem.

The only $_SESSION in use now is the one that keeps a record of which node/password pairs were found. Plus you can clear the sessions on the settings screen. That way you can ignore all old sessions (just in case.)

Thank you.
Alexis Wilke

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.