Database session problem


(Alx1367) #1

hey there
how are you
i faced a problem to login in my backend. try to save session in db and check it. after login action, it satored 8 rows of data in session table. :expressionless:
do know why?

any help?

this problem only occurred on my host not localhost.


(Johnson) #2

Hi,

If you have many session values the framework will store accordingly.

Please go through the page before you start doing session in DB. https://www.yiiframework.com/doc/api/2.0/yii-web-dbsession


(Alx1367) #3

thanks for response

i use that link and run my project, everything in local is ok, i have that problem when project is online


(Alx1367) #4

any help? please


(Auzadventure) #5

Post your code snippets and also a sample of the database rows.