本文整理匯總了PHP中App\Http\Controllers\Session::flush方法的典型用法代碼示例。如果您正苦於以下問題:PHP Session::flush方法的具體用法?PHP Session::flush怎麽用?PHP Session::flush使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類App\Http\Controllers\Session
的用法示例。
在下文中一共展示了Session::flush方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: logout
public function logout()
{
\Session::flush();
\Sentinel::logout();
$data['title'] = 'Login';
return \Redirect::to('/');
}
示例2: KisiSil
function KisiSil()
{
\Auth::logout();
\Session::flush();
\DB::delete('delete from users WHERE name = ?', [\Request::input('isim')]);
return \Redirect::to('auth/register');
}
示例3: redirectToFacebook
public function redirectToFacebook($redirect_path = null)
{
\Session::flush();
\Auth::logout();
if ($redirect_path) {
\Config::set('services.facebook.redirect', \Config::get('services.facebook.redirect') . "/" . $redirect_path);
}
return Socialize::with('facebook')->redirect();
}
示例4: store
public function store()
{
$id = $this->missionService->storeMission();
if ($id == 'logout') {
\Auth::logout();
\Session::flush();
return \Redirect::route('admin/home');
}
$file = \Input::file('file');
if ($file != null) {
$validateFile = $this->fileService->validateImage($file);
if (!$validateFile['error']) {
$this->missionService->storeImg($id, $file);
} else {
//else, redirect back with message
\Session::flash('flash_message', $validateFile['message']);
\Session::flash('flash_type', 'alert-danger');
return \Redirect::back()->withInput();
}
}
return \Redirect::route('mission/profile', ['id' => $id]);
}
示例5: logout
public function logout()
{
Auth::logout();
\Session::flush();
return redirect(\URL::route('home'));
}
示例6: getLogout
public function getLogout()
{
\Session::flush();
return redirect('/');
}
示例7: getLogout
public function getLogout()
{
\Auth::logout();
\Session::flush();
return Redirect::to('')->with('message', \SiteHelpers::alert('info', 'Your are now logged out!'));
}
示例8: getLogout
public function getLogout()
{
$this->auth->logout();
Session::flush();
return redirect('/admin/oaca/objetos/create');
}
示例9: logout
public function logout()
{
\Session::flush();
return \Redirect::to('/');
}
示例10: getLogout
public function getLogout()
{
\User::logout();
\Session::flush();
return redirect('admin/login')->with('flashMessage', ['class' => 'success', 'message' => 'You have logged out.']);
}
示例11: logout
function logout()
{
\Session::flush();
return \Redirect::to('login');
}
示例12: jalogado
public function jalogado()
{
Auth::logout();
\Session::flush();
return view('home', ['erros' => 'Usuário já logado em outra máquina']);
}
示例13: getLogout
public function getLogout()
{
\Auth::logout();
\Session::flush();
return \Redirect::to('/');
}