📅  最后修改于: 2022-03-11 14:54:51.277000             🧑  作者: Mango
/* create session in wordpress and php by joshiyogesh0333@gmail.com */
if (!session_id()) {
session_start();
}
if ( isset( $_POST['wp-submit'] ) ){
$_SESSION['username']=$_POST['log'];
}