Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 4372

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 4382

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 5404

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 5414

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 12615

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 12615

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 12625

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 12625

Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in /var/www/html/app/Helpers/helper.php on line 13

Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in /var/www/html/app/Helpers/helper.php on line 15

Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in /var/www/html/app/Helpers/helper.php on line 17

Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in /var/www/html/app/Helpers/helper.php on line 18

Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in /var/www/html/app/Helpers/helper.php on line 19
🧨 Cannot modify header information - headers already sent by (output started at /var/www/html/vendor/voku/portable-utf8/src/voku/helper/UTF8.php:4372)
/var/www/html/
ErrorException
Cannot modify header information - headers already sent by (output started at /var/www/html/vendor/voku/portable-utf8/src/voku/helper/UTF8.php:4372)
    • 48
      app/Traits/baseConfig.php
      Illuminate\Foundation\Bootstrap\HandleExceptions
      :144
  1. 1 unknown frame
    • 46
      app/Traits/baseConfig.php
      App\Http\Controllers\Controller
      :144
    • 45
      App\Http\Controllers\Controller
      :1024
    • 1
      index.php
      :51
Illuminate\Foundation\Bootstrap\HandleExceptions::handleError
app/Traits/baseConfig.php:144

129

130

131

132

133

134

135

136

137

138

139

140

141

142

143

144

145

146

147

148

149

150

151

152

153

154

155

156

157

158

159

$response = json_encode($json);

$session_info = json_decode($response, true);

// dd($session_info);

if(empty($session_info['MessageType']) || (!empty($session_info['MessageType']) && $session_info['MessageType'] != "E")) {

Session::forget('LoginCusStatus');

Session::put('STORE_ID', $session_info['StoreId']);

Session::put('SESSION_ID', $session_info['SessionId']);

Session::put('USER_ID', $session_info['UserId'] ?$session_info['UserId'] : 0);

Session::put('CartId', $session_info['CartId'] ?$session_info['CartId'] : 0);

Session::put('CartItemCount', $session_info['CartItemCount'] ?$session_info['CartItemCount'] : 0);

setcookie('BRSESSION_ID', Session::get('SESSION_ID'), time()+36000000, "/");

setcookie('USER_ID', $session_info['UserId'] ?$session_info['UserId'] : '', time()+36000000, "/");

$this->storeId = $session_info['StoreId'];

session()->save();

}else{

setcookie('BRSESSION_ID', '', -1, "/");

setcookie('USER_ID', '', -1, "/");

if(!empty($session_info['StatusCode']) && $session_info['StatusCode'] == 403){

Session::put('LoginCusStatus', $session_info['StatusCode']);

}

session()->save();

}

return !empty($session_info['SessionId'])?$session_info['SessionId']:"";

}

 

function removeCache(){

$storeId = Session::get('STORE_ID');

Cache::forget("StaffPicksProducts_".Session::get('Unique_Id'));

Cache::forget("FPProductsList_".Session::get('Unique_Id'));

Cache::forget("TopPicksList_".Session::get('Unique_Id'));

Cache::forget("StoreGetDetail_".Session::get('Unique_Id'));