Forum Moderators: phranque

Message Too Old, No Replies

Making passwords expire

passwords

         

Stuart4407

12:26 pm on Mar 7, 2003 (gmt 0)

10+ Year Member



I am try to make my passwords expire, I am currently using a .htaccess file to protect the directory. What would be the best language to use to implement something like this?

Any help would be appreciated

Thanks

Stuart

jatar_k

4:42 pm on Mar 9, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld Stuart4407,

you could probably use whatever language is available to you. You would have to implement the login with the chosen language though as opposed to using .htaccess.

Are you talking about your users or you own pass? Were you looking for something where people who don't login for a certain amount time can't?

Whichever, you could store the login info in a db and then a last login or created date in there as well. When someone tries to login it checks the dates and if they are out of range then prompts them to whatever action you require.

Not sure if that is what you mean but more specifics about the situation/scenario may help me answer a little better.

Stuart4407

9:11 am on Mar 10, 2003 (gmt 0)

10+ Year Member



Thanks for your reply.

If I use a db is it possible to prevent someone bypassing the password page and once they find out the url?

The scenario is just to isolate part of the website, for different users. Providing permanent and temporary access (depending on the user) to these parts.

Thanks

Stuart

jatar_k

4:09 pm on Mar 14, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



If you have a session or cookie to show that they are logged in you can check on each page whether they are logged in or not and, if not, boot them back to the login page.

sorry, I seem to have lost this thread for a few days