Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After seeing suspicious error messages in log file

My log file has the message The session cookie data did not match what was expected. This could be a possible hacking attempt about 5 times a second for around 10 minutes. Clearly some sort of hack attempt. Should I be worried about this and what can I double check to make sure I'm being as secure as possible?

like image 393
Catfish Avatar asked Oct 25 '22 02:10

Catfish


1 Answers

Using the database to store session information will protect you from people trying to manipulate their session data. You can also encrypt the session data if you can't/don't want to store session in the database for whatever reason, or you could do both.

It's very simple to make these changes. The documentation does a better job than I could of explaining how to set them up: http://codeigniter.com/user_guide/libraries/sessions.html

like image 82
Chris Schmitz Avatar answered Oct 27 '22 11:10

Chris Schmitz