Search
 
SCRIPT & CODE EXAMPLE
 

PHP

set session expire time in php

if (isset($_SESSION['LAST_ACTIVITY']) && (time() - $_SESSION['LAST_ACTIVITY'] > 1800)) {
    // last request was more than 30 minutes ago
    session_unset();     // unset $_SESSION variable for the run-time 
    session_destroy();   // destroy session data in storage
}
$_SESSION['LAST_ACTIVITY'] = time(); // update last activity time stamp
Comment

PREVIOUS NEXT
Code Example
Php :: count rows mysql limit php 
Php :: get data from model in chunks laravel 
Php :: PHP include causes white space at the top of the page 
Php :: salom 
Php :: big database file into database php 
Php :: set php version in php.ini 
Php :: order review checkout page reset woocomerce 
Php :: Laravel A row must be an array or a TableSeparator instance. 
Php :: learndash logo link 
Php :: laravel query count raw 
Php :: Bundling data mvc php 
Php :: Laravel eloquent mass assignments 
Php :: sha256 encode php 
Php :: Augmenter la dimension des fichiers WP 
Php :: pass variable in translation larvel 
Php :: create associative array php by key value site:stackoverflow.com 
Php :: onbeforeunload com mysql php 
Php :: Set post views count using post meta 
Php :: php artisan vendor:publish aborted 
Php :: How to programmatically grab the product description in WooCommerce? 
Php :: change php platform of composer 
Php :: laravel Why using additive paramerer in Resource collection raised error 
Php :: onde fica o php ini ubuntu 
Php :: statamic asset tag 
Php :: woo show Cross-Sells 
Php :: Dynamic modal name appending in laravel 
Php :: int to string in php 
Php :: Unsupported type passed 
Php :: laravel How to apply Eloquent where() to child in hasMany() relationship 
Php :: laravel best practices tutorial 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =