yafa77 Posted December 13, 2006 Share Posted December 13, 2006 HelloHow I can determine the time for user in the forum , for example (user A have only 10 hrs ) Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted December 13, 2006 Share Posted December 13, 2006 What do you mean "determine the time for user in the forum"?Like how SMF has "Total time logged in"? Quote Link to comment Share on other sites More sharing options...
yafa77 Posted December 13, 2006 Author Share Posted December 13, 2006 thanksI mean , I need to give the user access to the forum for 10 or 20 hrs only , and then delete his account from the database. Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted December 13, 2006 Share Posted December 13, 2006 record the time they first visited, then each time they visit a page compare that time to the current time...if the set amount of time has transpired, deny access.Use sessions, their IP address, or cookies, to track the time they first visited. Quote Link to comment Share on other sites More sharing options...
yafa77 Posted December 13, 2006 Author Share Posted December 13, 2006 Thanks hitman6003 I know that , but how I can do that in the code , does that easysorry , but I did't good programer Quote Link to comment Share on other sites More sharing options...
yafa77 Posted December 14, 2006 Author Share Posted December 14, 2006 ??? Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted December 14, 2006 Share Posted December 14, 2006 Try google, I'm sure you can find something there:http://www.google.com/search?hl=en&q=php+time+logged+in+tutorial&btnG=Google+Search Quote Link to comment Share on other sites More sharing options...
yafa77 Posted December 18, 2006 Author Share Posted December 18, 2006 who I can set the cocies cocies to solve this problem ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.