Some strange questions about session in PHP. Echo $ _ SESSION [kfGid]; 0005 $ kfGid $ rs [kfGid]; 0001 echo $ _ SESSION [kfGid]; actually changed to 0001 solution: 1. php version resolution problems. For security, you 'd better not echo $ _ SESSION ["kfGid"]; // It is 0005
$ KfGid = $ rs ["kfGid"]; // 0001
Echo $ _ SESSION ["kfGid"]; // actually changed to 0001
Solution:
1. php version parsing problems. For security, you 'd better not write it like this. Change $ kfGid to another one.
2. change php. ini register_global to off.
To improve security, we generally set register_global to off.
Http://www.bkjia.com/PHPjc/364131.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/364131.htmlTechArticleecho $ _ SESSION [kfGid]; // for 0005 $ kfGid = $ rs [kfGid]; // 0001 echo $ _ SESSION [kfGid]; // actually becomes 0001 solution: 1. php version resolution problems. For security, you 'd better not do this...