Mengerjakan tugas untuk member area dengan membuat:
1. Membuat Fs login
2. Membuat Fs cek session
3. Membuat Fs Logout
Dengan melakukan langkah:
1. Jalankan server apache & server
2. Buka config.php
3. Buka home.php
4. Buka PDO.php
5. Buka content.php
6. Buat session.php
7. Buat login.php
8. Buat logout.php
9. Buat login.php
10. Testing akses di browser
--> script yang di ubah pada htaccess
<IfMoudule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond % (REQUEST_fILENAME) !-f
RewriteCond % (REQUEST_fILENAME) !-d
RewritwRule . /11.11.5704/myFramework/index.php [L]
</IfModule>
--> script yang di ubah pada config.php
<?php
session_start();
error_reporting(0);
$hostname = "localhost";
$username = "root";
$password = "";
$dbname = "webdirectory_5704";
$_SESSION['hostname'] = $hostname;
$_SESSION['username'] = $username;
$_SESSION['password'] = $password;
$_SESSION['dbname'] = $dbname;
?>
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment