Hi,
I am doing some coding (PHP/MySQL) for a small company. So far they've asked me to write a code that allows users to log in and out (session mngnt), with an admin control panel where users can be created, reset, updated and deleted. A user also has a level (i.e. Admin, Sales, etc) so, depending on the level, a user will, or, will not have access to a page and the link to that page will, or, will not be displayed.
There's also a My Profile page where users can change their email or password.
All you have to do is add 2 lines of code on top of every page you want to be session managed.
Now, my 1st question is this. I am not a guru or a professional PHP coder so I thought I'd charge them $15/hr.(BTW, this is my wife's job). I took me a lot of hours but I am only charging for 15, I am not charging them for the research part. Like I said, I don't write all code at the top of my head, some times I have to refer to PHP Manual or this site.
So, this thing will cost them $225. Is it too much, too little, just right? Any comments will be appreciated.
2nd. The person I am dealing with wants additional security, so this is what I did, as per his suggestion. There is a text file saved on the root dir with a single line of characters, a key. The script matches this key with a hard-coded key. If it matches, it continues to the rest of the session validation. But, he prefers that this key is a specific machine related code, like a serial number or anything pertained to the PC. Can PHP extract this kind of number or code?
Also, is this whole idea a good one, does it really add an extra step of validation, or can it be easily be bypassed?
Thanks in advance you guys.
Panos.