I have a site drupal, it is possible, after entering a password, to display all their content as it is possible to create using the .htaccess file

The password would always be limited for an hour.

Is a module by which I can generate a password and insert it as current to display site content? Not a single field or node.

some idea?

Comments

John_B’s picture

https://www.drupal.org/project/user_expire

I have not used it. To lock people out after the hour is up you would also need to invalidate all cookies after 1 hour, which you can set cookie life in settings.php IIRC. Take a look at the module to see whether it handles this for you on a per user basis.

Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors

smiesek’s picture

I'm not a user account, I do not use the registration and the user's account on the site, I'm anonymous browsing the site content, no account

John_B’s picture

Of course you could do it in theory in a Drupal module, provided your .htaccess is writable by the web server, which often is the setup although it is not good security practice. I do not think there is any module which does this. You would probably have to write or commission a custom module. Depending on the workflow, a simple bash script might make more sense.

Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors