wordpress session management code example
Example: create session in wordpress
/* create session in wordpress and php by [email protected] */
if (!session_id()) {
session_start();
}
if ( isset( $_POST['wp-submit'] ) ){
$_SESSION['username']=$_POST['log'];
}