16 August 2019

How to create logout page with session in wordpress?

Create logout page with session in wordpress

<?php

session_start();

session_destroy();

session_unset();

//echo '<script LANGUAGE="JavaScript">window.location.href="'.site_url().'";</script>';

if(!isset($_SESSION['ID'])){

 echo '<script LANGUAGE="JavaScript">window.location.href="'.site_url().'/login-form";</script>';

}

?>

<script>

    location.reload();

</script>

No comments:

Post a Comment

How to run google search console request submission by UI vision IDE automate?

 Run google search console request submission by UI vision IDE automate? Source View --- Json Code {   "Name": "DemoCsvReadAr...