Plugin Directory

Changeset 1972187


Ignore:
Timestamp:
11/10/2018 03:29:54 PM (7 years ago)
Author:
eslamsalem
Message:

fix session start/step

Location:
shieldfy
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • shieldfy/tags/3.6/shieldfy.client.php

    r1972157 r1972187  
    11451145        if(!file_exists($session_cache_file)){
    11461146            $this->sessionID = md5(time() * mt_rand());
    1147             $result = $this->callApi("session",array(
     1147            $result = $this->callApi("session/start",array(
    11481148                'host' => $_SERVER['HTTP_HOST'],
    11491149                'sessionId' => $this->sessionID,
     
    11581158        }else{
    11591159            $this->sessionID = file_get_contents($session_cache_file);
     1160            $result = $this->callApi("session/step",array('sessionId'=> $this->sessionID,'host'=> $_SERVER['HTTP_HOST'] , 'info'=> array('code'=>http_response_code(),'time'=>time(), 'method'=> $_SERVER['REQUEST_METHOD'] , 'uri' => $_SERVER['REQUEST_URI'])));
    11601161        }
    11611162               
  • shieldfy/trunk/shieldfy.client.php

    r1972146 r1972187  
    11451145        if(!file_exists($session_cache_file)){
    11461146            $this->sessionID = md5(time() * mt_rand());
    1147             $result = $this->callApi("session",array(
     1147            $result = $this->callApi("session/start",array(
    11481148                'host' => $_SERVER['HTTP_HOST'],
    11491149                'sessionId' => $this->sessionID,
     
    11581158        }else{
    11591159            $this->sessionID = file_get_contents($session_cache_file);
     1160            $result = $this->callApi("session/step",array('sessionId'=> $this->sessionID,'host'=> $_SERVER['HTTP_HOST'] , 'info'=> array('code'=>http_response_code(),'time'=>time(), 'method'=> $_SERVER['REQUEST_METHOD'] , 'uri' => $_SERVER['REQUEST_URI'])));
    11601161        }
    11611162               
Note: See TracChangeset for help on using the changeset viewer.