Click here to Skip to main content
15,890,897 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi all

How can i create time out with php,for membership registered?

Thanks
Posted
Comments
Manfred Rudolf Bihy 2-Nov-13 16:59pm    
You need to add some more detail of what exactly you want.
1. A session timeout
2. Membership deactivation after a certain time interval of inactivity
3. Membership deactivation because of an elapsed membership subscription

For 2. and 3. you might consider sending out an email notification of the impending deactivation.

What should it be?
G4mm4R4y 5-Nov-13 20:11pm    
Elaborating on this,
For 1: Consider the fact the session usually ends when the user exits the site
For 2(and 3): Consider storing a date in a database or flat file system. Then say if its after --/--/-- than unlink(--)

Hope this helped

-Jayden S / http://www.web-coin.org/
Manfred Rudolf Bihy 5-Nov-13 20:22pm    
I hope you realize that it's not I who asked the question. I see no sensible reason why you are replying to my comment on OP's rather diffuse question.
G4mm4R4y 5-Nov-13 20:24pm    
I replied to you because i was giving an example based on what you said notice "Elaborating on THIS" and using your numbers.
Manfred Rudolf Bihy 5-Nov-13 21:36pm    
It is still not my question. I did not ask for advice, I was giving OP food for thought to come up with a more sensible question. :doh:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900