Drupal: Is safe adding uid=0 in users table just to use $_SESSION?
I read many articles about adding it, but I'm not encouraged to use i开发者_如何学运维t yet. People says that Drupal don't add this user because MySQL Auto-increment starts at 1. So, about adding uid=0, is it a good practice? Is it widely used? What possible problems could I have with it? Thanks. :)
No, we recommend using this uid as uid = 1, always corresponds to the admin, this can cause problems. What is the purpose of using that uid?
There is already a user 0 in the users table which is the anonymous user.
精彩评论