Changeset 1421 in ExiteCMS for trunk/includes/theme_functions.php


Ignore:
Timestamp:
05/30/08 22:11:18 (4 years ago)
Author:
hverton
Message:

replaced cookie system for detecting duplicate posts by session variables, which is much more scalable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/theme_functions.php

    r1313 r1421  
    467467    } 
    468468 
     469    // remove any expired posts trackers 
     470    if (isset($_SESSION['posts']) && is_array($_SESSION['posts'])) { 
     471        foreach($_SESSION['posts'] as $key => $value) { 
     472            if ($value < time()) unset($_SESSION['posts'][$key]); 
     473        } 
     474    } 
     475 
    469476    // flush any session info 
    470477    session_write_close(); 
Note: See TracChangeset for help on using the changeset viewer.