Safely Admin Panel

Thread Solved

Join Date: Sep 2009
Posts: 13
Reputation: ultras1 is an unknown quantity at this point 
Solved Threads: 0
ultras1 ultras1 is offline Offline
Newbie Poster

Safely Admin Panel

 
0
  #1
Oct 20th, 2009
I have administration part of my web site. But it will have only one user who will login in the page.My question what is more safely from attacks ? The user and password to be stored in mysql database or directly in .php file ?
Last edited by ultras1; Oct 20th, 2009 at 7:27 pm.
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 524
Reputation: Will Gresham is on a distinguished road 
Solved Threads: 86
Sponsor
Will Gresham's Avatar
Will Gresham Will Gresham is offline Offline
Posting Pro
 
0
  #2
Oct 20th, 2009
A database would be more secure.

If your PHP compiler stopped working for any reason, your PHP code yould be displayed as plain text, meaning that your password would be visible.

However, if you have it in a database and the compiler stops working, then the user will not see the Admin password. Although they would see the database connection information.

The best way would be in a database, and setup access hosts in your database to prevent anyone other than Localhost making a connection (Also, make sure your database user password is not the same as any other password you use, a string or random numbers/letters/symbols for example)
AJAX is not a programming language, scripting language or any other sort of language.
It is acheived by using JavaScript http functions.
So, AJAX = JavaScript.
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 523
Reputation: network18 is an unknown quantity at this point 
Solved Threads: 61
network18 network18 is offline Offline
Posting Pro
 
0
  #3
Oct 21st, 2009
encrypting the password before storing it to the db is also a good security measure.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 87
Reputation: hemgoyal_1990 is an unknown quantity at this point 
Solved Threads: 7
hemgoyal_1990's Avatar
hemgoyal_1990 hemgoyal_1990 is offline Offline
Junior Poster in Training
 
0
  #4
Oct 21st, 2009
Please Store your all Username and Password in Database with Encrypt of Password Field. This is Most Security Option in admin Panel.
http://www.kuchamancity.com
Hem Web Solution..
Behind Every Successful Man, There is an Untold Pain in His Heart.
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 13
Reputation: ultras1 is an unknown quantity at this point 
Solved Threads: 0
ultras1 ultras1 is offline Offline
Newbie Poster
 
0
  #5
Oct 21st, 2009
Ok, thanks to all
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 13
Reputation: ultras1 is an unknown quantity at this point 
Solved Threads: 0
ultras1 ultras1 is offline Offline
Newbie Poster
 
0
  #6
Oct 21st, 2009
One more question. What is better solution for login users. Cookies or sessions?
In cookies I put the time of their duration, but what about sessions, how long is their duration?
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 87
Reputation: hemgoyal_1990 is an unknown quantity at this point 
Solved Threads: 7
hemgoyal_1990's Avatar
hemgoyal_1990 hemgoyal_1990 is offline Offline
Junior Poster in Training
 
0
  #7
Oct 21st, 2009
the best solution is session..
because after a specified time the use automatically logged out so session is best option for security.
http://www.kuchamancity.com
Hem Web Solution..
Behind Every Successful Man, There is an Untold Pain in His Heart.
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 524
Reputation: Will Gresham is on a distinguished road 
Solved Threads: 86
Sponsor
Will Gresham's Avatar
Will Gresham Will Gresham is offline Offline
Posting Pro
 
0
  #8
Oct 21st, 2009
Originally Posted by hemgoyal_1990 View Post
the best solution is session..
because after a specified time the use automatically logged out so session is best option for security.
I am going to disagree with your reasons for using sessions over cookies, although Sessions are more secure in themselves:

This can also be done with Cookies, you can set the time they expire.
I assume you meant that they expire when the browser closes, but an auto timeout is not really required in most situations so can't really be used as the main point for using sessions..

The main advantage of sessions is that the session data is stored on the server, not on the client PC (Cookies store the data on the Client).
The only thing that is stored on the client is the session ID.
AJAX is not a programming language, scripting language or any other sort of language.
It is acheived by using JavaScript http functions.
So, AJAX = JavaScript.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 72
Reputation: smartness is an unknown quantity at this point 
Solved Threads: 10
smartness's Avatar
smartness smartness is offline Offline
Junior Poster in Training
 
0
  #9
Oct 21st, 2009
I use this in my projects:
http://www.evolt.org/node/60384
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC