- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
<?php
function userlogout() {
global $db,$session;
$result = @mysql_query("DELETE FROM sessions WHERE id='$session'");
setcookie('tsmatrixuser', '',time()-999999);
setcookie('tsmatrixlses', '',time()-999999);
setcookie('tsmatrixr', '',time()-999999);
setcookie('tsmatrixid', '',time()-99999);
setcookie('tsmatrixpass', '',time()-999999);
unset($_COOKIE['tsmatrixuser']);
$GLOBALS['id'] = '';
unset($_COOKIE['tsmatrixlses']);
$GLOBALS['session'] = '';
unset($_COOKIE['tsmatrixr']);
$GLOBALS['remember'] = '';
unset($_COOKIE['tsmatrixid']);
unset($_COOKIE['tsmatrixpass']);
$GLOBALS['password'] = '';
}
vistefan 22.05.2012 19:26 # 0
bormand 22.05.2012 19:28 # +2
qixKopY 25.08.2021 09:32 # 0