protected function clearPersistentData($key) { if (!in_array($key, self::$kSupportedKeys)) { self::errorLog('Unsupported key passed to clearPersistentData.'); return; } $session_var_name = $this->constructSessionVariableName($key); Session::forget($session_var_name); }
/** * Define the "namespace" from session * */ public function setSessionNamespace($namespace) { // Clear data for old session namespace Session::forget($this->namespace); $this->namespace = $namespace; return $this; }
public function resetQuotationSession() { // Init \Laravel\Session::forget('quote_id'); \Laravel\Session::forget('quote_email'); \Laravel\Session::forget('quote_layout'); \Laravel\Session::forget('quote_layout_id'); \Laravel\Session::forget('quote_size'); //\Laravel\Session::forget('quote_postcode'); // Lets remember the post code to make it easier for the user //Customise \Laravel\Session::forget('quote_customise_swap_window'); \Laravel\Session::forget('quote_customise_swap_wall'); \Laravel\Session::forget('quote_customise_extra_door'); \Laravel\Session::forget('quote_customise_fanlight'); \Laravel\Session::forget('quote_customise_half_window'); \Laravel\Session::forget('quote_customise_picture_window'); //Decking & floyover \Laravel\Session::forget('quote_decking_composite_deck_910_910'); \Laravel\Session::forget('quote_decking_composite_deck_910_1820'); \Laravel\Session::forget('quote_decking_composite_deck_910_2730'); \Laravel\Session::forget('quote_decking_flyover_roof_910_910'); \Laravel\Session::forget('quote_decking_flyover_roof_910_1820'); \Laravel\Session::forget('quote_decking_flyover_roof_910_2730'); // Electrics \Laravel\Session::forget('quote_electrics_double_sockets_450'); \Laravel\Session::forget('quote_electrics_double_sockets_1150'); \Laravel\Session::forget('quote_electrics_light_switch'); \Laravel\Session::forget('quote_electrics_panel_heater'); \Laravel\Session::forget('quote_electrics_double_floor_socket'); \Laravel\Session::forget('quote_electrics_fused_spur_socket'); // Internals \Laravel\Session::forget('quote_internals_silver_aluminium_venitian_blind_no_screws'); \Laravel\Session::forget('quote_internals_recessed_blinds'); \Laravel\Session::forget('quote_internals_internal_910_partition_wall'); \Laravel\Session::forget('quote_internals_internal_door_dividing_studio'); \Laravel\Session::forget('quote_internals_internal_wall_corner_post'); // Other \Laravel\Session::forget('quote_other_decoupled_floor'); \Laravel\Session::forget('quote_other_aquastep_oak_floor'); \Laravel\Session::forget('quote_other_walls_to_timber'); \Laravel\Session::forget('quote_other_taller_walls'); \Laravel\Session::forget('quote_other_entry_steps'); \Laravel\Session::forget('quote_other_entry_handrail'); \Laravel\Session::forget('quote_other_skirt'); }
/** * Log the user out of the driver's auth context. * * @return void */ public function logout() { $this->user = null; $this->cookie($this->recaller(), null, -2000); Session::forget($this->token()); Event::fire('laravel.auth: logout'); $this->token = null; }
/** * Log the user out of the driver's auth context. * * @return void */ public function logout() { $this->user = null; $this->cookie($this->recaller(), null, -2000); Session::forget($this->token()); $this->token = null; }
/** * Empty persistent form field_data. */ public static function forget_input() { // remove the persistent form data FOR-EV-ER, FOR-EV-ER, FOR.. Session::forget('serialized_field_data[' . get_called_class() . ']'); }
/** * Empties the cart, and removes the session. * * @access public * @return void */ public function destroy() { // Remove all the data from the cart and set some base values // array_set($this->cart_contents, $this->cart_name, array('cart_total' => 0, 'total_items' => 0)); // Remove the session. // Session::forget($this->cart_name); }