Changeset 15174


Ignore:
Timestamp:
2007/08/03 20:27:47 (14 years ago)
Author:
nanasess
Message:

$_SESSION[TRANSACTION_ID_NAME] が空の場合のみトークンを発行するように変更

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/LC_Page.php

    r15141 r15174  
    119119     */ 
    120120    function getToken() { 
    121         $token = $this->createToken(); 
    122         $_SESSION[TRANSACTION_ID_NAME] = $token; 
    123         return $token; 
     121        if (empty($_SESSION[TRANSACTION_ID_NAME])) { 
     122            $_SESSION[TRANSACTION_ID_NAME] = $this->createToken(); 
     123        } 
     124        return $_SESSION[TRANSACTION_ID_NAME]; 
    124125    } 
    125126 
     
    154155 
    155156        unset($_SESSION[TRANSACTION_ID_NAME]); 
    156  
    157157        return $ret; 
    158158    } 
Note: See TracChangeset for help on using the changeset viewer.