Ignore:
Timestamp:
Dec 1, 2006, 2:46:32 AM (17 years ago)
Author:
rvelices
Message:
  • sessions are always started (even for visitors)
  • thumbnail order saved in the session instead of cookie
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/user.inc.php

    r1568 r1623  
    4444    redirect(make_index_url());
    4545  }
    46   elseif (empty($_SESSION['pwg_uid']))
    47   { // timeout
    48     setcookie(session_name(),'',0,
    49         ini_get('session.cookie_path'),
    50         ini_get('session.cookie_domain')
    51       );
    52   }
    53   else
     46  elseif (!empty($_SESSION['pwg_uid']))
    5447  {
    5548    $user['id'] = $_SESSION['pwg_uid'];
    5649  }
    5750}
    58 
    5951
    6052// Now check the auto-login
     
    6456}
    6557
     58if (session_id()=="")
     59{
     60  session_start();
     61}
    6662
    6763// using Apache authentication override the above user search
Note: See TracChangeset for help on using the changeset viewer.