-=-
.
.....
  
 
RSS
Direkomendasikan menggunakan brower Opera/Chrome/Firefox. Resolusi minimal 1024x768 | Powered by ____ |
 
  
 
Nikmati Delphi-ID dalam berbagai versi tampilan :
Basic View (LOW Bandwidth)
Default View (Full)
Mobile Edition
Main Menu
..:: onWebTools ::..
..:: onLastPosts ::..
goto Postjumlah komponen maksimal dalam sebuah project(6)
 by d4mnf1y32
 on 21.May at 12:16
goto Posttanya grayscale to biner dengan scanline(1)
 by luckynvic
 on 20.May at 20:44
goto Posttanya looping biner to matriks(1)
 by luckynvic
 on 20.May at 20:10
goto Postsql error:acces denied for user....(2)
 by nasbms
 on 19.May at 16:54
goto Postpemanggilan frame(4)
 by nasbms
 on 19.May at 16:14
goto Posttanya AvLock(0)
 by azuriza
 on 19.May at 11:24
goto PostGet TDBEdit Value Menggunakan LookUp Grid(10)
 by henry_sys
 on 18.May at 11:27
goto Postmenghitung record dalam perulangan(4)
 by idhiel
 on 16.May at 13:53
goto Posttanya ascii(4)
 by mas_kofa
 on 16.May at 12:11
goto PostRawPrint Untuk Delphi XE2(0)
 by adewijaya
 on 15.May at 22:34
goto Postdatabase error..(4)
 by idhiel
 on 15.May at 15:57
goto Postbekasi, pt arila putra mahkota(3)
 by mas_kofa
 on 15.May at 15:37
goto Postbagaimana cara membaca file *.doc dg delphi?(0)
 by ficky
 on 15.May at 06:14
goto Posttanya biner to matriks(13)
 by diandewi
 on 14.May at 20:30

..:: onLast Articles ::..
..:: New Download ::..
Pascal-id.Org
Feeds -  Popular -  Latest
RE: The Longue
8 months, 3 weeks ago
RE: belajar pascal
8 months, 3 weeks ago
RE: The Longue
8 months, 3 weeks ago
RE: belajar pascal
8 months, 3 weeks ago
RE: Perkenalan dan Absen
8 months, 3 weeks ago
RE: Alhamdulillah Buka Puasa Bersama
8 months, 3 weeks ago
RE: تَقَبَّلَ اللهُ مِنَّا وَمِنْكَ - Selamat Hari Raya Idul Fitri
8 months, 3 weeks ago
Lintas Situs
«
free web site stats and visitor tracking

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
kaka-delphi
Location: Taziex
16 Post subject: Mengetahui User Online  PostPosted: 12/Oct/2005 21:01
onElite


Joined: 12-Oct-2005
Posts: 1050
Location: Taziex
Saya lagi membuat aplikasi db pake MySQL. Trus pengen saya, aplikasi bisa mendeteksi siapa saja yang O/L seperti web based.

Saya udah pernah coba bikin satu tabel user yang isinya ada satu field yang namanya aktif. Klo aplikasi dijalankan,maka ngecek dulu user yang dimasukkan pada form login apakah aktif='Y' atau 'T',dan itu berhasil.

Tapi katannya itu tidak baik, karena klo misal mati listrik, field aktifnya ga ke-update (aktif='T'). apakah ada cara lain ? (Seperti session klo di PHP) Surprised
 
 View user's profile Send private message Visit poster's website Yahoo Messenger  
Reply with quote Back to top
kaka-delphi
Location: Taziex
Post subject:   PostPosted: 13/Oct/2005 13:57
onElite


Joined: 12-Oct-2005
Posts: 1050
Location: Taziex
help dong
 
 View user's profile Send private message Visit poster's website Yahoo Messenger  
Reply with quote Back to top
ZeALOffline
Location:
Post subject:   PostPosted: 13/Oct/2005 16:08
onProfessional


Joined: 07-Apr-2005
Posts: 763

Status: Offline
Gini...tergantung nih..server dan client ada di area yang sama gak.. (fisik)..
Kalo ya, berarti kalo client mati, maka server juga mati..
jadi gak ada masalah kalo client tiba2 mati tanpa mengupdate statusnya sendiri..

Alternatif lain, tiap 30 menit sekali, client harus mengupdate field tertentu dengan waktu saat ini.. istilahnya daftar ulang.. kalo server mendeteksi bahwa user A telah lebih dari 30 menit tidak "daftar ulang" maka akan dianggap "off line". Cara mendeteksinya ya tinggal bandingin aja waktu di field tersebut dengan waktu sekarang.. Kalo lebih dari 30 menit, berarti client tersebut sudah logoff..

Alternatif lain lagi dengan menggunakan socket TCP/IP..
Di event onConnected tinggal diisi dengan "pesan" bahwa user logon..
dan onDisconected atau onError, diisi dengan "pesan" bahwa user logoff...
Walau repot, tapi yang penting bisa... Razz

_________________
do i know you?

[ My Blog : http://www.monyetpinter.com ] [ My RPG Project : http://einarc.wordpress.com ] [ FJBex : http://www.fjbex.com ]
 
 View user's profile Send private message  
Reply with quote Back to top
kaka-delphi
Location: Taziex
Post subject:   PostPosted: 13/Oct/2005 16:17
onElite


Joined: 12-Oct-2005
Posts: 1050
Location: Taziex
Klo pake mysql khan ga perlu aplikasi server lagi buat mengAccept kliennya. Tapi gpp lah yang penting udah bisa dulu.

Thanks atas sarannya. Klo ada masukkan tinggal kirim aja OK . . . Smile
 
 View user's profile Send private message Visit poster's website Yahoo Messenger  
Reply with quote Back to top
kaka-delphi
Location: Taziex
Post subject:   PostPosted: 13/Oct/2005 16:18
onElite


Joined: 12-Oct-2005
Posts: 1050
Location: Taziex
mau ganti topik ach Rolling Eyes
 
 View user's profile Send private message Visit poster's website Yahoo Messenger  
Reply with quote Back to top
ZeALOffline
Location:
Post subject:   PostPosted: 14/Oct/2005 07:29
onProfessional


Joined: 07-Apr-2005
Posts: 763

Status: Offline
maksud gue bikin 1 aplikasi kecil yang diletakkan di server yang tugasnya hanya untuk mengecek status saja..
sorry, kurang lengkap penjelasannya.. Very Happy Razz

_________________
do i know you?

[ My Blog : http://www.monyetpinter.com ] [ My RPG Project : http://einarc.wordpress.com ] [ FJBex : http://www.fjbex.com ]
 
 View user's profile Send private message  
Reply with quote Back to top
nokphyOffline
Location:
Post subject: Re: Mengetahui User Online  PostPosted: 28/May/2009 04:26
onNewBie


Joined: 28-May-2009
Posts: 3

Status: Offline
      kaka-delphi wrote:
Saya lagi membuat aplikasi db pake MySQL. Trus pengen saya, aplikasi bisa mendeteksi siapa saja yang O/L seperti web based.

Saya udah pernah coba bikin satu tabel user yang isinya ada satu field yang namanya aktif. Klo aplikasi dijalankan,maka ngecek dulu user yang dimasukkan pada form login apakah aktif='Y' atau 'T',dan itu berhasil.

Tapi katannya itu tidak baik, karena klo misal mati listrik, field aktifnya ga ke-update (aktif='T'). apakah ada cara lain ? (Seperti session klo di PHP) Surprised


Bikin Sebuah Filed Bertipe DateTime. Lalu Aplikasi Client Setiap 30 detik sekali mengupdate record tersebut. Aplikasi Monitoring Hanya Melihat Selisih Waktu Sekarang Dengan Yang Waktu Di Field. Misalnya Tampilkan Data Jika Selisihnya Lebih Dari 1 menit.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic





Powered by PNphpBB2 © 2003-2009 The Zafenio Team
Credits


| Register | Lost Password ? |