Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By sanjanaa on
Hi, I have a complaint register page in my site. The authendicated users only allowed to register their complaints. For this i used setcookie concept in "user module" file. I have an another php file to check whether either cookie has value or empty.
My concept is,
If that php file returns true then it goes to the register page. Otherwise, it goes to the login page. But it goes to login page always. Where can I set the value for cookie?
Thanks in advance...