Page 1 of 1

Would it be good/secure?

Posted: Wed Aug 03, 2011 1:26 pm
by martijn1
Hello

So soon I am going to create a big site, at this big site the admin will get the oppurunity to suspend users, close registrations etc. Would it be good to use integers for this, for example, if the admin opens registration the int would be 1, if closed it would 0. Is this a good and secure way to do these things?


Thanks in advance

Martijn1

Re: Would it be good/secure?

Posted: Wed Aug 03, 2011 1:39 pm
by Tino
I don't see a reason why that wouldn't work ;)

However, just for best practice purposes and maybe a slight increase in performance, make sure you use an INT with a max length of 1, rather than the standard 11. You'll probably only need 2 different states - open and closed - so there's no need for so much room.