I have one exception after the admin login.
thi is mi error log:
2015-05-21 11:02:42 ===== TRACE ===== NEW CONNECTED USER 'admin'
2015-05-21 11:02:42 ===== TRACE ===== 'user' is not an instance of User class. May be a hacking attempt from IP 10.0.0.159
2015-05-21 11:02:42 ===== TRACE ===== IP CLient=10.0.0.159
2015-05-21 11:02:42 ===== TRACE ===== $_REQUEST[id]=screenWidth
2015-05-21 11:02:42 ===== TRACE ===== $_REQUEST[value]=1440
2015-05-21 11:02:42 ** ERROR ** EXCEPTION **
2015-05-21 11:02:42 ** ERROR ** on file '/opt/projeqtor/tool/projeqtor.php' at line (128)
2015-05-21 11:02:42 ** ERROR ** cause = Invalid access attempt
2015-05-21 11:02:42 ** ERROR ** => #0 /opt/projeqtor/tool/saveDataToSession.php (30) -> require_once()
2015-05-21 11:02:42 ===== TRACE ===== 'user' is not an instance of User class. May be a hacking attempt from IP 10.0.0.159
2015-05-21 11:02:42 ===== TRACE ===== IP CLient=10.0.0.159
2015-05-21 11:02:42 ===== TRACE ===== $_REQUEST[id]=screenHeight
2015-05-21 11:02:42 ===== TRACE ===== $_REQUEST[value]=900
2015-05-21 11:02:42 ** ERROR ** EXCEPTION **
2015-05-21 11:02:42 ** ERROR ** on file '/opt/projeqtor/tool/projeqtor.php' at line (128)
2015-05-21 11:02:42 ** ERROR ** cause = Invalid access attempt
2015-05-21 11:02:42 ** ERROR ** => #0 /opt/projeqtor/tool/saveDataToSession.php (30) -> require_once()
2015-05-21 11:02:42 ===== TRACE ===== 'user' is not an instance of User class. May be a hacking attempt from IP 10.0.0.159
2015-05-21 11:02:42 ===== TRACE ===== IP CLient=10.0.0.159
2015-05-21 11:02:42 ** ERROR ** EXCEPTION **
2015-05-21 11:02:42 ** ERROR ** on file '/opt/projeqtor/tool/projeqtor.php' at line (128)
2015-05-21 11:02:42 ** ERROR ** cause = Invalid access attempt
2015-05-21 11:02:42 ** ERROR ***** => #0 /opt/projeqtor/view/main.php (36) -> require_once()
clean browser cache: done
stop an restart PHP server: done
delete sessions files from /var/lib/php/sessions: done
but the problem still
Please help
Issue in linked to another application you are also logged in, on same server.
The message you get : 'user' is not an instance of User class.
is because the other application also uses $_SESSION['user'] variable to store some connection information, but not on same format as PrpjeQtOr.
So you must be sure to clean the session
What you did is very good and should have solved the issue (as it does on 90% of cases)
What is possible is that session is not completely cleared.
For instance, the browser can keep things. If you use Chrome, take care to kill all Chrome prcesses (closing browser is not enough)
Best way to test is to use another browser you did not use to connect ot naother application.
For information, on V5 there will be a workaround to avoid this issue.
I solved the problem. :woohoo:
The cause was in php.ini
session.auto_start was 'on', my solution was edit my php.ini file and change 'session.auto_start=1' to 'session.auto_start=0';
Thanks for the help.
Thank you for sharing your solution.
It may be good help for other users 😉