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

hemratna.bhimani@gmail.com's avatar

How can I get current session id? (database as a session driver )

Hi,

I am using database as a session driver. After succesfully login, I want value of 'id' column of session table for current logged in session?

Thank you.

0 likes
1 reply

Please or to participate in this conversation.