Closed (fixed)
Project:
Protected Node
Version:
6.x-1.5
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
11 Mar 2011 at 18:46 UTC
Updated:
1 May 2011 at 01:51 UTC
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
Comment #1
bobroosth commentedOnce 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?
Comment #2
AlexisWilke commentedbobroosth,
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
Comment #3
AlexisWilke commentedI 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
Comment #4
AlexisWilke commentedThat 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