Changeset 1686 in ExiteCMS


Ignore:
Timestamp:
08/25/08 17:48:52 (3 years ago)
Author:
hverton
Message:

disabled a forced logout (due to expired login timer) when a POST is in progress

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/user_functions.php

    r1667 r1686  
    5656} 
    5757 
    58 // Check if a user is logging in 
     58// Check if a user wants to logging in 
    5959if (isset($_POST['login'])) { 
    6060    $auth_result = false; 
     
    9797} 
    9898 
    99 // login session expired? 
    100 if (!empty($_SESSION['login_expire']) && $_SESSION['login_expire'] < time()) { 
     99// if not in the process of posting a form, did the login session expired? 
     100if (count($_POST)==0 && !empty($_SESSION['login_expire']) && $_SESSION['login_expire'] < time()) { 
    101101    // clear the login info from the session 
    102102    unset($_SESSION['user']); 
Note: See TracChangeset for help on using the changeset viewer.