Need Ideas for Page Expiry

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

User avatar
eddy05
New php-forum User
New php-forum User
Posts: 10
Joined: Tue Mar 04, 2003 6:46 pm
Location: Singapore
Contact:

Need Ideas for Page Expiry

Postby eddy05 » Wed Mar 05, 2003 5:58 pm

I needed ideas for page expiry for security.

I made a page that checks the $_POST and see whether the password is correct. If it's correct, it'll display the page. If not, the user will be directed to another page.

1 thing is that after this page has been accessed, the user can use the back function on the browser to access the page again. If you need to see what I mean, my testing page is here: http://eddy05.sytes.net/wc3Replays/index.php and try the text field. The temporary password is abcxyz.

I need ideas on how to make the page expire after using it. Thank you very much.

Regards, eddy05

Xerpher
New php-forum User
New php-forum User
Posts: 164
Joined: Tue Aug 27, 2002 8:25 pm
Location: Ontario, Canada
Contact:

Postby Xerpher » Wed Mar 05, 2003 6:23 pm

So you want it that when I person tries to login, if the password is wrong, it won't them retry for a period of time? or am I wrong?

User avatar
eddy05
New php-forum User
New php-forum User
Posts: 10
Joined: Tue Mar 04, 2003 6:46 pm
Location: Singapore
Contact:

Postby eddy05 » Wed Mar 05, 2003 6:40 pm

Erm not quite right.

When the admin keys in the correct password, he will be able to access the admin page. But after he uses the admin page, he is still able to access it using the BACK on the browser. my point is how to I make it expire so that even the BACK function won't work

Xerpher
New php-forum User
New php-forum User
Posts: 164
Joined: Tue Aug 27, 2002 8:25 pm
Location: Ontario, Canada
Contact:

Postby Xerpher » Wed Mar 05, 2003 7:36 pm

Oh sorry... I would start a session that expires when the person choses Win or Lose... Unfortunately I have little experience with sessions and I'm no expert... but I'd do that and make the script change the password the person can't just log back in to do it anyway.


Return to “PHP coding => General”

Who is online

Users browsing this forum: Google [Bot] and 0 guests