/* create session in wordpress and php by joshiyogesh0333@gmail.com */ if (!session_id()) { session_start(); } if ( isset( $_POST['wp-submit'] ) ){ $_SESSION['username']=$_POST['log']; }