T
T
tigra2016-10-13 16:39:40
Yii
tigra, 2016-10-13 16:39:40

How to track where sessions are reset?

The user's language and country setting is stored in the session. The session lifetime is 1 month in both Apache and yii.

'session' => [
            'timeout' => 3600 * 24 * 30,
            'cookieParams' => [
                'lifetime' => 3600 * 24 * 30,
            ],
        ],

I set the language and country, the next day I turn on the computer, these parameters are reset again to the standard ones.
Cookies definitely live for a month (switched the date 29 days ahead, she still lives). Means somehow the session is cleared. How can you figure out where it's going?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
romy4, 2016-10-13
@romy4

well, there are a thousand options
, maybe they are session ones
, maybe the path is not /
maybe (well, suddenly) GC cleans

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question