Question
Log in Set Cookie if field = 1
Can anyone help me with this please.
I have a log in page which issues a cookie and seems to work brilliantly but now need to add the ability to activate/deactivate a user.
I've added an 'active' field to the database where active can only equal 1 or zero. So what I'd like to do now is edit the login script to deny login if the 'active' field = 0.
I'm sure it's quite straightforward but I'm afraid it's proving a bit beyond me. I've attached the existing code in case anyone has the time to help me out.
Cheers
Dave
I have a log in page which issues a cookie and seems to work brilliantly but now need to add the ability to activate/deactivate a user.
I've added an 'active' field to the database where active can only equal 1 or zero. So what I'd like to do now is edit the login script to deny login if the 'active' field = 0.
I'm sure it's quite straightforward but I'm afraid it's proving a bit beyond me. I've attached the existing code in case anyone has the time to help me out.
Cheers
Dave
