當前位置: 首頁>>代碼示例>>PHP>>正文


PHP interPool::writeCookie方法代碼示例

本文整理匯總了PHP中interPool::writeCookie方法的典型用法代碼示例。如果您正苦於以下問題:PHP interPool::writeCookie方法的具體用法?PHP interPool::writeCookie怎麽用?PHP interPool::writeCookie使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在interPool的用法示例。


在下文中一共展示了interPool::writeCookie方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: header

                 // Set that authentication occurred.
                 $sess->setSessVar('id_pool', $id_pool);
                 // Store the ligue_id in the session
                 $sess->setSessVar('user', $user);
                 // Store the username in the session
                 $sess->setSessVar('application', 'interpool');
                 // Store the application in the session
                 $sess->setSessVar('periode', $periode);
                 $sess->setSessVar('periode_sel', $periode);
                 $sess->setSessVar('gerant', $rtnL[1]);
                 $sess->setSessVar('gerant_sel', $rtnL[1]);
                 $sess->setSessVar('admin', $rtnL[2]);
                 $sess->setSessVar('id_saison', $id_saison);
                 $sess->setSessVar('poolName', $rtnL[3]);
                 $sess->setSessVar('pool_type', $pool_type);
                 $pool->writeCookie($user, $pswd, $id_pool, "lge");
                 $pool->dbClose();
                 header("Location: /src/main2.php");
                 exit;
             }
             $pool->dbClose();
         }
     }
 } else {
     if (!isset($_GET['logout'])) {
         $pool = new interPool();
         if (!is_null($pool->readCookie("lge"))) {
             $cValue = $pool->readCookie("lge");
             $cValueA = explode(":", $cValue);
             $username = $cValueA[0];
             $password = $cValueA[1];
開發者ID:jfanctil,項目名稱:lamoria,代碼行數:31,代碼來源:index_lge.php

示例2: header

                 // Set that authentication occurred.
                 $sess->setSessVar('id_pool', $id_pool);
                 // Store the ligue_id in the session
                 $sess->setSessVar('user', $user);
                 // Store the username in the session
                 $sess->setSessVar('application', 'interpool');
                 // Store the application in the session
                 $sess->setSessVar('periode', $periode);
                 //$sess->setSessVar('periode_sel',$periode);
                 $sess->setSessVar('gerant', $rtnL[1]);
                 $sess->setSessVar('gerant_sel', $rtnL[1]);
                 $sess->setSessVar('admin', $rtnL[2]);
                 $sess->setSessVar('id_saison', $id_saison);
                 $sess->setSessVar('poolName', $rtnL[3]);
                 $sess->setSessVar('pool_type', $pool_type);
                 $pool->writeCookie($user, $pswd, $id_pool, "pmh");
                 $pool->dbClose();
                 header("Location: /src/main2.php");
                 exit;
             }
             $pool->dbClose();
         }
     }
 } else {
     if (!isset($_GET['logout'])) {
         $pool = new interPool();
         if (!is_null($pool->readCookie("pmh"))) {
             $cValue = $pool->readCookie("pmh");
             $cValueA = explode(":", $cValue);
             $username = $cValueA[0];
             $password = $cValueA[1];
開發者ID:jfanctil,項目名稱:lamoria,代碼行數:31,代碼來源:index_pmh.php

示例3: header

                 $sess->setSessVar('authenticated', TRUE);
                 // Set that authentication occurred.
                 $sess->setSessVar('id_pool', $id_pool);
                 // Store the ligue_id in the session
                 $sess->setSessVar('user', $user);
                 // Store the username in the session
                 $sess->setSessVar('application', 'interpool');
                 // Store the application in the session
                 $sess->setSessVar('periode', $periode);
                 $sess->setSessVar('gerant', $rtnL[1]);
                 $sess->setSessVar('gerant_sel', $rtnL[1]);
                 $sess->setSessVar('admin', $rtnL[2]);
                 $sess->setSessVar('id_saison', $id_saison);
                 $sess->setSessVar('poolName', $rtnL[3]);
                 $sess->setSessVar('pool_type', $pool_type);
                 $pool->writeCookie($user, $pswd, $id_pool, "st-nic");
                 $pool->dbClose();
                 header("Location: /src/main2.php");
                 exit;
             }
             $pool->dbClose();
         }
     }
 } else {
     if (!isset($_GET['logout'])) {
         $pool = new interPool();
         if (!is_null($pool->readCookie("st-nic"))) {
             $cValue = $pool->readCookie("st-nic");
             $cValueA = explode(":", $cValue);
             $username = $cValueA[0];
             $password = $cValueA[1];
開發者ID:jfanctil,項目名稱:lamoria,代碼行數:31,代碼來源:index_st-nic.php


注:本文中的interPool::writeCookie方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。