Sabtu, 28 Januari 2017
Kode ajaib untuk session tidak bekerja di cpanel
Diposting oleh
dor
<?php
session_save_path($_SERVER['DOCUMENT_ROOT']."/../tmp");
session_id("login");
if (session_status() == PHP_SESSION_NONE) {
@session_start();
}
if (empty($_SESSION['jenenge']) AND empty($_SESSION['kodene'])) {
echo "tidak ada \n";
$_SESSION['jenenge'] = "bb";
$_SESSION['kodene'] = "aa";
} else {
echo "ada";
echo $_SESSION['jenenge'];
}
?>
session_save_path($_SERVER['DOCUMENT_ROOT']."/../tmp");
session_id("login");
if (session_status() == PHP_SESSION_NONE) {
@session_start();
}
if (empty($_SESSION['jenenge']) AND empty($_SESSION['kodene'])) {
echo "tidak ada \n";
$_SESSION['jenenge'] = "bb";
$_SESSION['kodene'] = "aa";
} else {
echo "ada";
echo $_SESSION['jenenge'];
}
?>
Langganan:
Posting Komentar
(
Atom
)
© arna | kutuc0m™ 2013 . Powered by Bootstrap , Blogger templates and RWD Testing Tool Published..Gooyaabi Templates
Komentar ini telah dihapus oleh pengarang.
BalasHapus