Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

create session in wordpress

/* create session in wordpress and php by joshiyogesh0333@gmail.com */
if (!session_id()) {
    session_start();
}

  if ( isset( $_POST['wp-submit'] ) ){

    $_SESSION['username']=$_POST['log'];

  }
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #create #session #wordpress
ADD COMMENT
Topic
Name
4+4 =