laravel 5创建会话文件适用于本地但不适用于实时

时间:2015-12-13 10:31:31

标签: laravel laravel-5

我的应用程序在本地工作顺利,但在在线直播服务器中,它总是在存储/框架/会话中创建一个新的会话文件。它始终显示令牌不匹配。我无法找出我的错在哪里?实际上它在我的本地服务器上工作正常。

我的路线是:

Route::get('/', ['as'=>'dashboardRoute','uses'=>'DashboardController@index']);
//imports
Route::get('import/emails', ['as' => 'importEmailFormRoute', 'uses' => 'ImportController@getEmailImport']);
Route::post('import/emails', ['as' => 'importEmailPostRoute', 'uses' => 'ImportController@postEmailImport']);
Route::get('import/contacts', ['as' => 'importContactFormRoute', 'uses' => 'ImportController@getContactImport']);
Route::post('import/contacts', ['as' => 'importContactPostRoute', 'uses' => 'ImportController@postContactImport']);
//end imports
Route::get('user/profile', 'UserController@profile');
Route::post('user/profile', 'UserController@profileUpdate');

Route::resource('email', 'EmailController');
Route::resource('contacts', 'ContactController');
Route::resource('email-group', 'EmailGroupController');
Route::resource('contact-groups', 'ContactGroupController');
Route::resource('group-data', 'GroupDataController');
Route::resource('contact-group-datas', 'ContactGroupDataController');
Route::resource('user', 'UserController');
Route::resource('mail-log', 'EmailLogController');
Route::resource('sms-log', 'SmsLogController');

Route::get('send-form', 'SendMailController@sendEmailForm');
Route::get('group-mail-form', 'SendMailController@groupMailForm');
Route::post('send', 'SendMailController@sendMail');
Route::post('send-to-group', 'SendMailController@sendMailToGroup');


Route::get('sms/custom-send', ['as' => 'sendCustomSmsFormRoute', 'uses' => 'SmsController@getSendCustomSms']);
Route::post('sms/custom-send', ['as' => 'sendCustomSmsPostRoute', 'uses' => 'SmsController@postSendCustomSms']);

Route::get('sms/send-to-group', ['as' => 'sendGroupSmsFormRoute', 'uses' => 'SmsController@getSendGroupSms']);
Route::post('sms/send-to-group', ['as' => 'sendGroupSmsPostRoute', 'uses' => 'SmsController@postSendGroupSms']);

// api
Route::group(['prefix' => 'api'], function () {
    Route::get('email', ['as' => 'tagEmailListRoute', 'uses' => 'ApiController@tagEmailList']);
    Route::get('contact', ['as' => 'tagContactListRoute', 'uses' => 'ApiController@getTagContactList']);

    Route::group(['prefix' => 'data-table'], function () {
        Route::get('emails', ['as' => 'emailListDataTableRoute', 'uses' => 'ApiController@emailListDataTable']);
    });
});
//end api

Route::controllers([
    'auth' => 'Auth\AuthController',
    'password' => 'Auth\PasswordController',
]);

我的会话配置:

'driver' => env('SESSION_DRIVER', 'file'),
'lifetime' => 120,
'expire_on_close' => false,

0 个答案:

没有答案