Source codeigniter session lost, but not on localhost

I have this strange problem with my ci sessions. It works fine on localhost, but in online mode the log shows an error:

Session cookie data is not as expected. This should be a possible hacking attempt.

I deleted all cookies and emptied the session table. I also set the length of user_agent to 255. The base path is also correct. What is a notification when I register a session ID, is the following:

On the login page and when checking the username / pw, the identifier will be the same, and then I will go to the area of ​​my members where the identifier has changed.

Another example:
1. I go to the participants area, the session identifier is set, I have not logged in, I sent the login
2. The session identifier has changed on the login page, log in

3. Verification, the session identifier is unchanged, I am verified and sent to the participants area.
4. In the members area, the session ID has been changed, I have not logged in.

On the login page of my session table, 0 rows are counted, when I enter the session table, it counts 2/3 rows. 1 of them, but not the one for which the current session identifier contains all the correct data.

Hope someone can help me.

+5
source share
2 answers

;

  • - , cookie , ? - $config ['sess_expiration'] 9999999 ,

  • $config ['encrypt_cookie']

  • $config ['sess_match_ip']

  • , cookie:

    $config['cookie_prefix']    = "";
    $config['cookie_domain']    = // YOUR DOMAIN
    $config['cookie_path']      = // YOUR BASE URI
    $config['cookie_secure']    = FALSE;
    
+1

All Articles