What happens if session name is same on two different websites?

后端 未结 7 1058
渐次进展
渐次进展 2021-01-13 07:23

I have a two diff. project on my XAMPP say it is Project1 and Project2.
When i login with Project1, i check authentic

7条回答
  •  太阳男子
    2021-01-13 08:22

    I think if we use a security algorithm like MD5 to encrypt the session which you'll using to login. That will work without problem. For example:

    $name_session='username';
    $name_session=md5(md5(md5($name_session));
    $_SESSION[$name_session]="username_logged";
    

提交回复
热议问题