在负载均衡器上处理会话的最佳方式是什么?
我在会话中使用“cookie”选项,但在负载平衡器上,它会迅速下降。
如果我使用“数据库”会导致性能问题吗? 或者最好的处理方式是什么?
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be used on
| requests. By default, we will use the lightweight native driver but
| you may specify any of the other wonderful drivers provided here.
|
| Supported: "file", "cookie", "database", "apc",
| "memcached", "redis", "dynamodb", "array"
|
*/
'driver' => env('SESSION_DRIVER', 'cookie'),