Show sourcecode

The following files exists in this folder. Click to view.

Foogler_blog/pages/login

PLogin.php
PLoginProcess.php
PLogoutProcess.php

PLogoutProcess.php

17 lines ASCII Windows (CRLF)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
//---------------------
//PLogoutProcess.php
//
//Handles logout process
//---------------------

// ------------------------------------------------------------------------
// Destroy the current session (logout user), if it exists. 
require_once(TP_SOURCEPATH 'FDestroySession.php'); 

// ------------------------------------------------------------------------
// Redirect to another page
$redirect = isset($_POST['redirect']) ? $_POST['redirect'] : 'index';
header('Location: ' WS_SITELINK "?p={$redirect}");
exit;