Reseller Domain Murah dan termurah di Indonesia? ya di ResellerCamp.
         
 

Forum PHP Indonesia

 
Advanced Search
   
 
Home Register FAQ Memberlist Usergroups  
 
 

Forum PHP Indonesia Forum Index Session & Cookie tanya sesion registered
Display posts from previous:   
      All times are GMT + 7 Hours  

tanya sesion registered

Post new topic  Reply to topic

Wed Dec 30, 2009 10:10
Author Message
yossy
PHP Master
PHP Master


Joined: 09 Oct 2007
Posts: 216
Location: terkadang ada di rumah om gogel, atau gak di gubuk mbok yeem

Post subject: tanya sesion registered Reply with quote

saya melakukan sesion registered untuk kode seperti ini
Quote:

<?session_start();?>
<?php
if(!session_is_registered("pengunjung")){
include"\frontpage.php";}
else{
include"\welcomesessionapi.php";}
?>

nah pesan error terdapat pada line 3, pada tulisan
if(!session_is_registered("pengunjung")){
yang mau di tanyakan mengapa register pengunjung di anggap error , ap pengaruh sama register global yang on atau off. klo iya pake RG yang ap?
saya pake app serv versi 2.6 terima kasih
_________________
http://montirai.com
 
View user's profile Send private message Visit poster's website Yahoo Messenger
      Back To Top  

Wed Dec 30, 2009 14:19
Author Message
hous3b4d
PHP Master
PHP Master


Joined: 08 Sep 2009
Posts: 192
Location: gamping, sleman, yogyakarta

Post subject: Reply with quote

coba kl emg pengaruh ganti dlu
Code:
<?php <? session_start(): ?> ?>


dg
Code:
<?php <?php session_start(); ?> ?>


tp kyN bknN harus ada session_register('pengunjung'); g y...?¿ krg pham juga c ttg php...
Weks
 
View user's profile Send private message Visit poster's website Yahoo Messenger
      Back To Top  

Wed Dec 30, 2009 15:59
Author Message
hlie
I am PHP
I am PHP


Joined: 10 Apr 2008
Posts: 3050
Location: Singapore

Post subject: Re: tanya sesion registered Reply with quote

yossy wrote:
saya melakukan sesion registered untuk kode seperti ini
Quote:

<?session_start();?>
<?php
if(!session_is_registered("pengunjung")){
include"\frontpage.php";}
else{
include"\welcomesessionapi.php";}
?>

nah pesan error terdapat pada line 3, pada tulisan
if(!session_is_registered("pengunjung")){
yang mau di tanyakan mengapa register pengunjung di anggap error , ap pengaruh sama register global yang on atau off. klo iya pake RG yang ap?
saya pake app serv versi 2.6 terima kasih


ya anda ngerti register itu apakan??
sebelumnya apakah variable pengunjung udah dijadiin session??
seperti $_SESSION['pengunjung'] = $_POST/$_GET['pengunjung'];


sekarang php 5 tinggal pake isset()

_________________
Past is Experience,Present is Experiments,Future is Expectations,Use your Experience in your Experiments to achieve your Expectations...!!!
www.slackware.com
 
View user's profile Send private message Send e-mail Yahoo Messenger
      Back To Top  

Wed Dec 30, 2009 18:22
Author Message
hous3b4d
PHP Master
PHP Master


Joined: 08 Sep 2009
Posts: 192
Location: gamping, sleman, yogyakarta

Post subject: Reply with quote

kl Q bysanya kl mw cek session pke
Code:
<?php session_start();
if(ISSET(
$_SESSION['nama_session'])){
//pernyataan jika memang sessioN "nama_session"
}
else{
//jika tidak
?>


kl $_SESSION['nama_session']; cm mw ambil variabel dari nama_session...

itu tambahan,mgkn bs membantu. . .
Weks
 
View user's profile Send private message Visit poster's website Yahoo Messenger
      Back To Top  

Thu Dec 31, 2009 08:23
Author Message
yossy
PHP Master
PHP Master


Joined: 09 Oct 2007
Posts: 216
Location: terkadang ada di rumah om gogel, atau gak di gubuk mbok yeem

Post subject: Reply with quote

ok mantap sudah bisa, pake isset thank all.. kayak na rumus session is registered ku gak cucok om.. hhe..
thank cemua, nanti tanya lagi ya. hiks,..
_________________
http://montirai.com
 
View user's profile Send private message Visit poster's website Yahoo Messenger
      Back To Top  

Thu Dec 31, 2009 08:36
Author Message
hous3b4d
PHP Master
PHP Master


Joined: 08 Sep 2009
Posts: 192
Location: gamping, sleman, yogyakarta

Post subject: Reply with quote

tp Q jg kdang pke session_is_registered();
modelnya pun sama
Code:
<?php session_start();
if(
session_is_registered('nama_session')){
//jika sessionnya "nama_session" y
}
else{
//jika session nya buka "nama_session"
?>


ywdah good luck dengan kerjaannya y...
 
View user's profile Send private message Visit poster's website Yahoo Messenger
      Back To Top  

Sat Jul 17, 2010 23:56
Author Message
musicanda
PHP Master
PHP Master


Joined: 02 Jun 2010
Posts: 263
Location: Rumahnya Angeline

Post subject: Reply with quote

Big Smile
 
View user's profile Send private message Send e-mail Visit poster's website
      Back To Top  
Post new topic  Reply to topic

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


      Back To Top  

Page 1 of 1
Jump to:  
Powered by phpBB © 2001, 2002 phpBB Group
Toko Kaos Couple | Avalanche style by What Is Real © 2004 | Toko Baju Butik Online | Cara Pedia | Busana Baju Muslim