Most of our features and services are available only to our members. So we encourage you to login or join us by registering a new account. Registration is free, fast, and simple. You only need to provide a valid email address so we can minimize spammers. As a Symbianize member you'll have the following privileges:
Gain access to private forums and restricted features
Reply and create new topics or polls
Download free applications, games, themes, graphics, tones, videos, etc.
Ask question or support related to mobile phone, computer, game console, and multimedia
Private messaging (PM) with fellow members
Communicate instantly or real-time with currently online members via Shout Box
All that and more, so what are you waiting for, join us now! Ito ang website na ginawa ng pinoy para sa pinoy!
ProgrammingDiscussions related to C++, HTML, PHP, ASP, ColdFusion, JavaScript, Perl, Phyton, Ruby, WML, SQL, XML, and other programming languages.
every page dapat may ganito:
echo '<meta http-equiv="refresh" content="3; logout.php" />';
replace mo nalang yung mga red highlighted text sa preference mo.. yung 3 is seconds yun.. so dun mo papalitan kung ilan seconds silang idle bago malogout..
or you can make a countdown like function using mktime function of PHP, though same effect lang din yan, mas simple lang yung meta refresh..
or kung gumagamit ka ng sessions, pwede siguro yung session destroy function, if else ka nalang sa time mo..
gaya nito:
Quote:
<?php
session_start();
$_SESSION['session_time'] = time(); //got the login time for user in second
$session_logout = 900; //it means 15 minutes.
//and then cek the time session
if($session_logout >= $_SESSION('session_time']){
//user session time is up
//destroy the session
session_destroy();
//redirect to login page
header("Location:the-path-your-login-page.php");
}
?>
source: *Only fully-registered users can see this link.*