I'm Currently using php session ( $_SESSION ), I want to use $_COOKIE Because when a user didn't click the logout button and he closed the website. still he is showing Online because i write the code at the logout page.
So If we use $_COOKIE it is update the database ? Please help me
You can check for a session and a valid in-time value. The mysql db stores the session id and the last activity (e.g. page impression) You can stop somebody carrying on with a session if there is no activity within say 20 minutes. Read More
I think that you need to consider / explain how you want to accomplish this in a bit more detail. It seems that you need to keep track of who is active and the time of their last activity. If they have closed the web page for your site, then you won't have anything running on the server for that session (that can access session or cookie data). You probably need some sort of timed task that will periodically check the time of last activity for whoever you believe to be online and mark them as offline if the last activity was older than some pre-determined period (e.g. 30 minutes).
You can check for a session and a valid in-time value.
The mysql db stores the session id and the last activity (e.g. page impression)
You can stop somebody carrying on with a session if there is no activity within say 20 minutes.
<?php $this->load->library('form_validation'); ?> <?php echo validation_errors(); ?> <?php echo form_open('cpages/ceklogin'); ?> <div class="login-card"> <center><?php //echo $warning; ?> <?php echo $this->session->flashdata('warning'); ?> </center> <h2>Gionda CMS Login</h2><br> <form> <div class="login"><input type="text" ...
I have to create a program to only be used as a tool (no main function). Below is the background information related to task:
Your goal for this ...
how can i save a folder path in the sql server database and retrive it again by using vb.net 2010?