-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsession.php
29 lines (25 loc) · 870 Bytes
/
session.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
include('config.php');
session_start();
$user_check = $_SESSION['login_user'];
// echo 'checkpoint 1 <br>';
$ses_sql = mysqli_query($conn,"select * from loginlist1 where username = '$user_check' ");
$row = mysqli_fetch_array($ses_sql,MYSQLI_ASSOC);
$first_name = $row["first_name"];
$last_name = $row["last_name"];
$username = $row["username"];
$theme = $row["theme"];
$gadget = $row["gadget"];
$full_name = ''.$first_name.' '.$last_name.'';
$passion1 = $row['passion1'];
$content = "'php-static-component/\postvisual.php'";
// echo $full_name;
//user basic id
$thumbnail = $row['thumbnail'];
$profile_picture = $row['profile_picture'];
$login_session = $row['username'];
$name_session = $full_name;
if(!isset($_SESSION['login_user'])){
header("location:login.html");
}
?>