2 Replies - 740 Views - Last Post: 25 August 2012 - 10:50 AM Rate Topic: -----

#1 xtremer360  Icon User is offline

  • D.I.C Head

Reputation: -2
  • View blog
  • Posts: 123
  • Joined: 03-March 11

Max Attempts Issue

Posted 25 August 2012 - 10:17 AM

I came up with some ideas and was hoping you could look it over and see if you see anything still wrong with it. I think something is. When the user puts in the wrong credentials it correctly inserts a new row into the failed login attempts table however I canít see the session variable established and increased each failed time and everything after that because after every failed attempt it always says incorrect username and password combination.

http://pastebin.com/M1iMaQmq

Is This A Good Question/Topic? 0
  • +

Replies To: Max Attempts Issue

#2 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 4354
  • View blog
  • Posts: 12,160
  • Joined: 18-April 07

Re: Max Attempts Issue

Posted 25 August 2012 - 10:48 AM

Of course you won't see the session when the login fails. You would only establish a session with a user if they have successfully logged in. Try logging in successfully and then check to see if you see the session established.

I think things are working correctly, you are just misinterpreting the outcome in a given situation. Now if you don't see the session started on a successful login, then there might be a problem.

:)
Was This Post Helpful? 0
  • +
  • -

#3 xtremer360  Icon User is offline

  • D.I.C Head

Reputation: -2
  • View blog
  • Posts: 123
  • Joined: 03-March 11

Re: Max Attempts Issue

Posted 25 August 2012 - 10:50 AM

With codeigniter a session is created when visited to the site. So yes a session is started.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1