<div>Brilliant, thanks mate !</div>
<div>&nbsp;</div>
<div>So am I to understand that by simply setting that option to false in config.php all my worries are over !!</div>
<div><br>Thanks Again </div>
<div><br>Chris ;-)<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 13/02/06, <b class="gmail_sendername">Rob Janes</b> &lt;<a href="mailto:janes.rob@gmail.com">janes.rob@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">either set CONF_USE_CRON_FOR_DB_CLEANUP to false in your config.php, or<br>put this one line script in /etc/cron.hourly
<br><br>cd &lt;wifidog-auth base directory where config.php is&gt; &amp;&amp; su apache -c<br>'php -f cron/cleanup.php'<br><br>or, in crontab<br>0,5,10,15,20,25,30,35,40,45,50,55 * * * * cd &lt;wifidog-auth base dir<br>where 
config.php is&gt; &amp;&amp; su apache -c 'php -f cron/cleanup.php' &gt;<br>/dev/null 2&gt;&amp;1<br><br>or, depending on your cron..<br>0,5,10,15,20,25,30,35,40,45,50,55 * * * * apache cd &lt;wifidog-auth base<br>dir where 
config.php is&gt; &amp;&amp; php -f cron/cleanup.php &gt; /dev/null 2&gt;&amp;1<br><br>you may have to edit this line in cron/cleanup.php from<br>require_once('../include/common.php');<br>(that errors for me)<br>to<br>require_once(dirname(__FILE__).'/../include/common.php');
<br><br>door number one is definitely the easier one, but i don't like it that<br>every user query that comes in runs cleanup.<br><br>the redirect to dev null is cause cleanup.php moans about $_SERVER not<br>being set, and you'll get an email from cron every 5 minutes about that.
<br><br>-rob<br><br>Chris Rowson wrote:<br><br>&gt; I also suffered from the users still logged in problem, and would love<br>&gt; to know how to solve it!<br>&gt;<br>&gt; Any help anyone ;-)<br>&gt;<br>&gt; Chris<br>&gt;
<br>&gt;<br>&gt;------------------------------------------------------------------------<br>&gt;<br>&gt;_______________________________________________<br>&gt;WiFiDog mailing list<br>&gt;<a href="mailto:WiFiDog@listes.ilesansfil.org">
WiFiDog@listes.ilesansfil.org</a><br>&gt;<a href="http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog">http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog</a><br>&gt;<br><br>_______________________________________________
<br>WiFiDog mailing list<br><a href="mailto:WiFiDog@listes.ilesansfil.org">WiFiDog@listes.ilesansfil.org</a><br><a href="http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog">http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog
</a><br></blockquote></div><br>