timing user access

Discussion in 'PHP' started by slycharlie, Nov 12, 2008.

  1. #1
    hello,
    i would like to setup a system that authenticates and authorizes access for a specified period of time after which they are kicked out. for starters i am depending on php session handling writing data to a mysql database. Would appreciate any suggestions and help. :confused:
     
    slycharlie, Nov 12, 2008 IP
  2. SoundRoom

    SoundRoom Peon

    Messages:
    26
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This is what your looking for ?

    session_start();
    
    // timeout period in seconds
    $inactive = 600;
    
    // check
    $_SESSION['timeout'] is set
    if(isset($_SESSION['timeout']) ) {
    	$session_life = time() - $_SESSION['timeout'];
    	if($session_life > $inactive)
            { session_destroy(); header("Location: logoutpage.php"); }
    }
    $_SESSION['timeout'] = time();
    Code (markup):
     
    SoundRoom, Nov 12, 2008 IP
  3. aireen9

    aireen9 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    1) During installation of ArticleMS, there is a warning msg at top of mysite page as follows:-
    “Warning: set_time_limit() has been disabled for security reasons in /home/a6620434/public_html/install/index.php on line 2”

    2) And After successful install, there is warning msg on my website as follows:-
    “2008-11-08 05:08:35 (PST) / 2 Warning exec() has been disabled for security reasons /home/a6620434/public_html/core.php 439”

    Can anybody help resolve those problem?
    http://nichearticles.50gigs.net
     
    aireen9, Nov 21, 2008 IP