Rabu, 09 Oktober 2013

PHP Indonesia - Facebook: mohon pendapat rekan2...kira2 apa yg keliru dari p...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Exotic travel ideas.

Searching for your next vacation destination? Subscribe to Off The Beaten Path, a newsletter featuring captivating locales to help you to plan your next trip.
From our sponsors
mohon pendapat rekan2...kira2 apa yg keliru dari p...
Oct 9th 2013, 07:30, by Arif J. Parker

Arif J. Parker 7:30am Oct 9
mohon pendapat rekan2...kira2 apa yg keliru dari penggalan script session ini :

<?php
session_start();
//error_reporting(0);
require 'database/connect.php';
require 'functions/general.php';
require 'functions/users.php';

if (logged_in() === true) {
$session_user_id = $_SESSION['user_id'];
$user_data = user_data($session_user_id,'user_id', 'username','password','tipe');
if (user_active($user_data['username']) === false) {
session_destroy();
header('location: index.php');
exit();
}
}
$errors = array();
?>

krn walaupun sudah saya logout user, sub pages masih bisa diakses....mohon koreksi nya...thx sebelumnya

Pengaturan Privasi 7:32am Oct 9
script logged_in() seperti apa?

Arif J. Parker 7:32am Oct 9
ini mba :

function logged_in(){
return (isset($_SESSION['user_id'])) ?true : false;
}

Isan Sandra Fauzi 7:36am Oct 9
gan sintak if (logged_in() === true) emg sma dengannya 3 ya..

Arif J. Parker 7:39am Oct 9
menurut vid tuts dr youtube sih spt itu mas....emang seharusnya gmn?

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar