This is related to Session Preferences. You have to tell the application in what context it should manage/read session data. The documentation says the configuration options cookie_domain
and cookie_path
influence the behaviour of the session, as shown in link indicated above:
In addition to the values above, the cookie and Native drivers apply the following Configuration values Shared by the Input and Security classes:
Tell the session library which domain or the path for which the current session applies. If you leave this blank in the application configuration (application/config/config.php
), the browser will understand that the session is valid for all contexts, and will use it in this way.
To avoid this, change application/config/config.php
to the right domain:
$config['cookie_domain'] = 'aplicacao.com.br';
Or for the path correct:
$config['cookie_path'] = '/aplicacao';
Mark the answer so as not to leave the question open...
– ShutUpMagda