trying to run function just once |
I use native PHP session_start() which is called in app/Controllers/BaseController.php
Once called $_SESSIONS remain active all the time a user is logged in and the session is dropped (I think when a user logs out.). Try checking to see if $_SESSION['RUNONCE'] has been set. File: /app/Controllers/BaseController.php PHP Code: //======================================================= Edit: Just tried setting the script in index.php and it also works OK |
Welcome Guest, Not a member yet? Register Sign In |