473,386 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to do password expiry in php or mysql?

14
How to do password expiry in php or mysql?
Jan 28 '11 #1
3 4737
Rabbit
12,516 Expert Mod 8TB
You do it by storing the expiration date in the table and then retrieving the date from the table when authenticating the user.
Jan 28 '11 #2
HaLo2FrEeEk
404 256MB
Pretty much what rabbit said, to expand a little bit though, when the user logs in you check the current time against the expiry time. If the current time is less than the expiry time, continue with the login, if it is greater, notify the user that their password has expired and give them the option to change it. Don't allow the login if the current time is greater than the expiry time.
Jan 28 '11 #3
rupalee
14
Yup,..thanks ..i will try this.
Jan 29 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Geoff Muldoon | last post by:
Hi all, Help please. Environment: Unix (Tru64) / Apache / PHP4.0.6 / Oracle8i Establish connection to Oracle: for ($I=0; $I<$max_attempts; $I++) {
11
by: John Victor | last post by:
In my mysql database, I've stored all the passwords using the PASSWORD() function. Now I'm running a test and need to compare the password in my php document to that saved in the database. I used...
0
by: Aris | last post by:
hello: i am new in mysql .. i would like make password to access one table i dont need the privillage method . if there is not .please tell me how can i encrypt/decrypt table . excuse my...
1
by: Anthony Davis | last post by:
Hello All, I have been using the MySQL control center and had my usernames and passwords for the MySQL server stored in the control center. I recently lost everything on my PC including the...
1
by: berehneh | last post by:
i run mysql in windows server 2000 in LAN and when i want ot see mydatabase with phpmyadmin i recieved a an error that was "Access is denied for user:root" my password was correct and when i empty...
0
by: Kenneth Keeley | last post by:
Hi, How can I do the below code in ASP.Net as I wish to provide an indication to my staff on our Intranet site of when they will need to change there password. On Error Resume Next Const...
2
by: Fareast Adam | last post by:
Here is my code: if(isset($_REQUEST)) { $nopwd= $_POST;//no of password $length = $_POST;//lenght of password $value1= $_POST;//abcdefghijklmnopqrstuvwxyz $value2=...
5
Markus
by: Markus | last post by:
Another day, another question. :) I'm now onto building a login for my current project - image host. User submits password > password is encoded Like so: ('$username',...
1
by: vinokarthi | last post by:
Hi, I couldn't connect mysql & php.I tried with many query,but no use. If I run php,the page is blank. I think I have problem with to create user & password in mysql. Plz help to connect...
2
by: santhanalakshmi | last post by:
Hi, Please help me out..... I have created an user in the Mysql database with the password. user : san password : san ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.