ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 9764


Ignore:
Timestamp:
Dec 29, 2008, 11:41:19 AM (11 years ago)
Author:
ebihara
Message:

#3251:enabled URL based session management in the mobile_frontend application when the client is not support cookie

Location:
OpenPNE3/trunk
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/mobile_frontend/config/factories.yml

    r9199 r9764  
    2626
    2727all:
    28 #  controller:
    29 #    class: sfFrontWebController
    30 #
     28  controller:
     29    class: opMobileFrontWebController
     30
    3131  request:
    3232    class: sfOpenPNEWebRequest
     
    5656#
    5757  storage:
    58     class: sfSessionStorage
     58    class: opMobileSessionStorage
    5959    param:
    6060      session_name: OpenPNE_mobile_frontend
     61
    6162#
    6263#  view_cache:
  • OpenPNE3/trunk/lib/request/sfOpenPNEWebRequest.class.php

    r8757 r9764  
    9595    return false;
    9696  }
     97
     98  public function isCookie()
     99  {
     100    if ($this->getMobile()->isDoCoMo())
     101    {
     102      return false;
     103    }
     104    elseif ($this->getMobile()->isSoftBank())
     105    {
     106      if (!$this->getMobile()->isType3GC() && !$this->getMobile()->isTypeW())
     107      {
     108        return false;
     109      }
     110    }
     111
     112    return true;
     113  }
    97114}
Note: See TracChangeset for help on using the changeset viewer.