开发者

Drupal: Is safe adding uid=0 in users table just to use $_SESSION?

开发者 https://www.devze.com 2023-03-02 03:53 出处:网络
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 ui

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消