Modifying the address of SESSION has no effect
按键盘手指磨破皮
按键盘手指磨破皮 2017-07-19 23:03:48
0
1
1157

; where MODE is the octal representation of the mode. Note that this

##; does not overwrite the process's umask.

; http://php.net/session.save- path

session.save_path = "D:/www/qq/sese"

After changing it, restart the server but the storage location is still the same as before. Why? There are still 2 sessions on it. I also tried to modify save_path but it didn’t work. Also, why can’t I press Enter to change the line in this input box? ? ? ? ? Another question is, will the session also store database connection information? I saw a file of more than 1M with a lot of stuff in it that seemed to be database information. What's going on? Kneel down and beg God for help

按键盘手指磨破皮
按键盘手指磨破皮

reply all(1)
Ty80
$session_path=$this->root()."session_tmp";
if(!is_dir($session_path)){
    mkdir($session_path,true,777);
}
session_save_path($session_path);
session_start();


  • reply Boss, I don’t quite understand. I’m a newbie here. The $this->root you wrote above is for classes. Is there a class above? Is the tmp in session_tmp the address? Is it enough to change this TMP? Is this code placed in the session class?
    按键盘手指磨破皮 author 2017-07-20 09:22:12
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template