[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
sarpras1
/
admin
/
[
Home
]
File: session.php
<?php //Start session session_start(); //Check whether the session variable SESS_MEMBER_ID is present or not if (!isset($_SESSION['id']) ||(trim ($_SESSION['id']) == '')) { header("location:".host()."../index.php"); exit(); } $session_id=$_SESSION['id']; $user_query = mysql_query("select * from admin where admin_id = '$session_id'")or die(mysql_error()); $user_row = mysql_fetch_array($user_query); $admin_username = $user_row['username']; ?>