The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,'

后端 未结 7 1803
情歌与酒
情歌与酒 2020-11-27 17:12

How to solve :

Warning: session_start() [function.session-start]: The session id is too long or contains illegal characters, valid characters are a-z, A-

7条回答
  •  隐瞒了意图╮
    2020-11-27 17:31

    There is a bug report for this problem (https://bugs.php.net/bug.php?id=68063)

    You can check the success of your session_start and generate the id if needed:

    $ok = @session_start();
    if(!$ok){
    session_regenerate_id(true); // replace the Session ID
    session_start(); 
    }
    

提交回复
热议问题