Find Jobs
Hire Freelancers

php code to check users logged in FIRST OF MANY JOBS [job 5.5]

$30-100 USD

Cancelled
Posted over 13 years ago

$30-100 USD

Paid on delivery
DO NOT BID ON THIS UNLESS YOU WILL BE ABLE TO DO SERVERAL LARGER JOBS QUICKLY IN THE NEXT WEEK. I am more concerned that you are able to do the jobs than on getting the cheapest bid. This is the first of 4 or 5 jobs. The rest of the jobs will be larger. I want to find the right coder to do the big jobs on this site. I am using this to find a good coder to do the rest of the projects as well. The work will be in php and mysql. In your application, please tell me if you will be able to do several large projects in the next week. To do the rest of the jobs, you will have full ftp access to the site. for this job, you are just creating a function and a page. I will upload it to the site. At the top of each page in the "family" folder there will be a line or a few lines that calls the code that that ensures the user is logged in. There user id "fid" might be stored as a $_SESSION or $_COOKIE. If they are not logged in it should send them to a login page. You will have to create the log in page as well. I will provide the login page from another folder which you can use as a model, or create your own. If you create your own, you need not worry about the headers, just create the php code and a table with the login form and links. I will provide you will a php page that calls all of the code to set the headers, footers and connects to the database. When working with passed variables, always use $_REQUEST, never use $_POST or $_GET, so that I can later pass the information in whichever form I choose. ## Deliverables **Ensure Log In of Family** I need you to create code that checks to see if a user has logged in. If they have logged in, there family ID will be stored as 'fid'. If they have not, they should be sent to a loggin page. Their log in information might be stored as a cookie or a session variable. Check that they are logged in in this order 1. check for $_SESSION[fid] 1a. if it exists, set $fid = $_SESSION[fid] and don't check anything else. let the user access the page. 1b. if it does not, go to step 2 2. if $_SESSION[fid] does not exist, check for $_COOKIE[fid]. 2a. if $_COOKIE[fid] does exist, set $_SESSION[fid] = $_COOKIE[fid] and $fid = $_SESSION[fid] and let the user access the page 2b. if $_COOKIE[fid] and $_SESSION[fid] do not exist, send the user to the login page. I need this to be the first thing that every page does but I do not want it to take up a ton of space on each page. This means that the code will be stored on a seperate sheet, and on each page the first few lines of code will be used to call the function. **The log in page must do the following **1. ask for username and password 2. have a checkbox which asks the user if they want to be remembered on that computer 3. has link to let them sign up as new user (doesn't have to go anywhere yet) 4. must have a way of deleting cookies and session variables in case the user wants to log off, and some way of indicating that the user needs to log off with either a $_GET or $_POST. 5. If the user is sent to the login page from another page because they were not logged in, send them back to the page they were forwarded from once they log in. If they navigated themselves to the login page, send them to [login to view URL] once they log in. 6. must have a link to "forgot information" page (need not go anywhere yet) When the user logs in, the page must check that the username and password are correct, and if so store the users id number as a session variable called "fid" The username, password and id are all stored in a table which already exists. I will give the winning bidder the name of the table. You do not need to create the table, just query it. In addition, the connections to the database will be provided, so you don't need to connect to the database either. If the user has checked the "remember me" box, their id should be stored as cookie with the name "fid" that expires in one year from the time they log in. If the username and password are not correct, the page must tell them that their information did not match any information stored in the database. **Completed Job Will Include **1. code that actually checks user is logged in which will be stored in a separate page called with an "include" 2. code to put at the top of each page that calls the code to check user is logged in and "includes" the code. 3. php loggin page 1) All deliverables will be considered "work made for hire" under U.S. Copyright law. Employer will receive exclusive and complete copyrights to all work purchased. (No 3rd party components unless all copyright ramifications are explained AND AGREED TO by the employer on the site per the worker's Worker Legal Agreement). ## Platform php mysql htm
Project ID: 3877575

About the project

16 proposals
Remote project
Active 13 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
16 freelancers are bidding on average $59 USD for this job
User Avatar
See private message.
$127.50 USD in 2 days
4.9 (159 reviews)
7.7
7.7
User Avatar
See private message.
$63.75 USD in 2 days
5.0 (286 reviews)
7.4
7.4
User Avatar
See private message.
$102 USD in 2 days
5.0 (147 reviews)
7.2
7.2
User Avatar
See private message.
$85 USD in 2 days
4.9 (181 reviews)
7.3
7.3
User Avatar
See private message.
$85 USD in 2 days
5.0 (150 reviews)
6.9
6.9
User Avatar
See private message.
$25.50 USD in 2 days
4.9 (174 reviews)
6.1
6.1
User Avatar
See private message.
$63.75 USD in 2 days
5.0 (96 reviews)
5.7
5.7
User Avatar
See private message.
$21.25 USD in 2 days
4.6 (59 reviews)
6.1
6.1
User Avatar
See private message.
$42.50 USD in 2 days
5.0 (24 reviews)
5.8
5.8
User Avatar
See private message.
$38.25 USD in 2 days
5.0 (54 reviews)
5.6
5.6
User Avatar
See private message.
$8.50 USD in 2 days
5.0 (27 reviews)
5.3
5.3
User Avatar
See private message.
$21.25 USD in 2 days
5.0 (58 reviews)
5.3
5.3
User Avatar
See private message.
$12.75 USD in 2 days
5.0 (16 reviews)
5.0
5.0
User Avatar
See private message.
$38.25 USD in 2 days
4.5 (8 reviews)
4.2
4.2
User Avatar
See private message.
$42.50 USD in 2 days
4.6 (9 reviews)
2.9
2.9
User Avatar
See private message.
$170 USD in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Davis, United States
5.0
105
Payment method verified
Member since Sep 17, 2001

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.