galdikas Posted May 5, 2011 Share Posted May 5, 2011 Ok.. Will gonna attempt to have a go at coding attacvking system. So I am now trying to come up with a way to make sure that if someone is in attack. so that he wont be able to browse any other page without losing an attack. So if i set a session variable in attacking: $_SESSION['attack']=1; but do not declare this in any other page. And then something like that' if(isset($_SESSION['attack'])) { battlecode goes here } else $_SESSION['attack']=1; So if someone visits another page while in attack... will this variable get destroyed??? Quote Link to comment Share on other sites More sharing options...
bineye Posted May 10, 2011 Share Posted May 10, 2011 I reckon going for a one-click would be less of a pain tbh Quote Link to comment Share on other sites More sharing options...
Nickson Posted May 10, 2011 Share Posted May 10, 2011 Sessions carry over to other pages in php, as long as the session is not destroyed all data once set will stay. 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.