Topic: PHP questiony thingy Pages that link to <a href="" title="Pages that link to Topic: PHP questiony thingy" rel="nofollow" >Topic: PHP questiony thingy\

Author Thread
Bipolar (III) Mad Scientist

From: Camillus, NY, USA
Insane since: Jul 2000

IP logged posted posted 04-03-2006 20:17 Edit Quote

So a thought occurred in mine head, is it possible in PHP to give a certain file a time limit.
It was an idea for my, probably rather childish authentication system...

A file would be created with a random string and that string is passed from form to form on the site while looking around the admin features,
but there would be an inactivity time limit, that is reset every time you load a page with the key. Eg if you don't load anything for 5 minutes the file is removed so you would be required to log back in.

Or something.

Bipolar (III) Inmate

From: Minnesota
Insane since: Aug 2003

IP logged posted posted 04-03-2006 21:28 Edit Quote

A cookie with a life of 5 minutes? Reset its creation time everytime you load the page.

(Edited by Nathus on 04-03-2006 21:30)

Nervous Wreck (II) Inmate

Insane since: Dec 2001

IP logged posted posted 04-04-2006 04:58 Edit Quote

I would instead suggest using sessions and setting max_lifetime, cookie_expire, and the whole sh-bang:

Edit: Um, there is no "cookie_expire". There's "cookie_lifetime" and "cache_expire", but they had no lovechildren. Alas, the saga continues.


(Edited by divinechaos on 04-04-2006 04:59)

Paranoid (IV) Mad Scientist

From: Rochester, NY, USA
Insane since: Jul 2000

IP logged posted posted 04-04-2006 07:28 Edit Quote

Assuming I can do that without using HTTP authentication (brain too tired at the moment to read) sessions actually sounds like a pretty good idea.

I think I saw that once a while ago when I was starting to code this site...but some reason passed on it.
I'll definitely investigate the both options when I have more time and energy and continue to post adventures here.

Thanks for the input.

Obsessive-Compulsive (I) Inmate

Insane since: Jan 2015

IP logged posted posted 01-20-2015 06:24 Edit Quote

I did a quick search of the archives for the planetary locator map - found the original threads but not the actual map.

Post Reply
Your User Name:
Your Password:
Login Options: Remember Me On This Computer
Your Text:
Options: Show Signature
Enable Slimies
Enable Linkwords

« BackwardsOnwards »

Show Forum Drop Down Menu