![]() When the domain name used in the access URL is different from the domain name set in $cookie_url, Drupal shows Access denied error. We’ve seen $cookie_domain set wrongly after a template export, website migration, or hosting update (say subdomain to standalone). This session information contains the website name as well, which is set using $cookie_domain in settings.php. Incorrect $cookie_domain setting in settings.phpĭrupal uses small text files called “cookies” to store session information in the browsers. Solution : To fix this we repair the corrupted table with the command : mysql> repair table sessions Ģ. The error will state something like : Can't open file: 'sessions.MYI' This will cause all open sessions to fail, including that of the admin.Įvidence of this issue can be seen in the log files. ![]() Once it is corrupted, Drupal can no longer access it. In busy websites, this table will have hundreds of even thousands of writes & reads, which can eventually cause the table to be corrupted. Corrupted sessions table in the Drupal databaseĭrupal stores the session details in its database, within a table called “sessions”. Here are the top 5 causes we’ve seen for this error:ġ. So, how do session files become inaccessible? Read on.Ĭauses of Access denied error, and its solutionsĭrupal depends on PHP, Databases, server file system, browser cache, and more to keep track of session files.Įven if one of them fails, the session tracking breaks, and Drupal will show the Access denied error to be on the safe side. If the session details are lost or inaccessible in any of these two locations, Drupal will suspect a foul play and deny access to the pages. When an admin user logs in, that login is stored in a “session” file in the user’s browser as well as the website’s database.Īs long as the session in these two locations remain accessible, the admin will have access to the site. ![]() This is like having a super power over the site.Īnd how does Drupal make sure hackers won’t get that power? What is Drupal Admin access denied error?Ī Drupal site admin can access all pages, and change any setting. The error message is cryptic, which is all the more frustrating. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |