当前位置: 动力学知识库 > 问答 > 编程问答 >

php - How do I randomize a Session ID?

问题描述:

I want my sessions to create random ids. I want to use this:

session_regenerate_id()

What I have now, are these two parts:

<?php

session_start();

function confirm_logged_in() {

if (!logged_in()) {

redirect_to("login.php");

}

}

?>

Thanks.

分享给朋友:
您可能感兴趣的文章:
随机阅读: