username and passwor protected webpage using php and mysql

Reply

Join Date: Aug 2008
Posts: 3
Reputation: juner4 is an unknown quantity at this point 
Solved Threads: 0
juner4 juner4 is offline Offline
Newbie Poster

username and passwor protected webpage using php and mysql

 
0
  #1
Aug 11th, 2009
Hello im juner, a new php developer, i already finished with a register.php, login.php file. My problem is when the main.php is accessable after login by correct username and password stored in mysql database, the main.php composed of the following link:
changepassword.php
addsponsor.php
deletesponsor.php

when i click the changepassword.php link then the changepassword.php is not protected with the inputted username and password in login.php.

what i am asking now is, is there anybody has the idea with this problem? im about a month of searching in the internet but i never found a solution so help me.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 483
Reputation: DangerDev has a spectacular aura about DangerDev has a spectacular aura about 
Solved Threads: 59
DangerDev's Avatar
DangerDev DangerDev is offline Offline
Posting Pro in Training

Re: username and passwor protected webpage using php and mysql

 
0
  #2
Aug 11th, 2009
are you asking about how to send user name and password to server with security ?
Freedom in the Mind, Faith in the words.. Pride in our Souls...
Indian Developer
http://falaque.wordpress.com/
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 228
Reputation: chrishea is an unknown quantity at this point 
Solved Threads: 32
chrishea's Avatar
chrishea chrishea is offline Offline
Posting Whiz in Training

Re: username and passwor protected webpage using php and mysql

 
0
  #3
Aug 11th, 2009
If you want changepassword to be able to check and/or change the password then you will need to make the current id and password available or at least set a flag to show that the user is properly logged in. You will want to save this as a SESSION variable so you can access it in any module that needs it.
Chris
See my list of PHP development tools at:
InnovationsDesign.net
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 3
Reputation: juner4 is an unknown quantity at this point 
Solved Threads: 0
juner4 juner4 is offline Offline
Newbie Poster

Re: username and passwor protected webpage using php and mysql

 
0
  #4
Aug 11th, 2009
Yes what i want is to send the username and password to the changepassword.php without another login because that case i already logged in main.php which composed of the changepassword.php link. when i click the changepassword link the username and password will be send also for the security of the changepassword.php link.

i am hoping for your help. thank for the reply.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 483
Reputation: DangerDev has a spectacular aura about DangerDev has a spectacular aura about 
Solved Threads: 59
DangerDev's Avatar
DangerDev DangerDev is offline Offline
Posting Pro in Training

Re: username and passwor protected webpage using php and mysql

 
0
  #5
Aug 12th, 2009
during changing password you dont have to send user name and password to client, instead just ask current password and new password to the user, take those password to server and validate the current password, if current password is matching, reset the new password.
Freedom in the Mind, Faith in the words.. Pride in our Souls...
Indian Developer
http://falaque.wordpress.com/
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum


Views: 290 | Replies: 4
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC