Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

yzedayyash's avatar

Dublicate query when use SESSION_DRIVER=database

Hello,

i have a duplicate query when load anypage on my website,

select * from `sessions` where `id` = 'ykQz0YS8vSKIJDd1MuYt7tVyGSIRGuo7jncLBbfn' limit 1
update `sessions` set `payload` = 'YToh0dHA6Ly8xMjcuMC4wLjE6ODAwMC9sb2dpbiI7fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fX0=', `last_activity` = 1590496081, `user_id` = '', `ip_address` = '127.0.0.1', `user_agent` = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36' where `id` = 'ykQz0YS8vSKIJDd1MuYt7tVyGSIRGuo7jncLBbfn'
38.37ms
select * from `sessions` where `id` = 'ykQz0YS8vSKIJDd1MuYt7tVyGSIRGuo7jncLBbfn' limit 1

is there anything to do with those duplicated queries?

0 likes
2 replies

Please or to participate in this conversation.