How the heck do I increment a variable that's inside a session? If I declare $attempt, each time a user unsuccessfully attempts to login, I want $attempt to increase by 1. In the event it gets to 3, display a captcha.
This doesn't seem to work. :-P
$this->session->set_userdata('attempt',$this->attempt++);