本文整理汇总了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('/');
}