Page 1 of 1

hi i need help for php cod for reload lobby

Posted: Wed Mar 20, 2013 1:07 pm
by iman.wavetv
i need for button reload lobby waith user now lobby its reload ut its not login with user name and show eror session key is invalid or expired

this cod for js

Code: Select all

[$(document).ready(function() {
            $('#reload').click(function() {
                $("#ifGame, #Accounts").attr('src', $("#ifGame, #Accounts").attr('src'));
                return false;
/code]


[code]tr>
        <td valign="top">  <input type="button" onClick="fullscreen()" value="Full Screen"   id="btFullscreen" alt="welcome"  class="Screen"  />  </td>
      </tr>
      <td>            <?php
      $player = $_GET["LoginName"];
      $key = $_GET["SessionKey"];
      echo("<iframe  id='ifGame' frameBorder=0 src='http://64.79.73.151:8087?LoginName=$player&SessionKey=$key' width='870' height='630'></iframe>");
      ?></td>

    </tr>
plz help me

Re: hi i need help for php cod for reload lobby

Posted: Wed Mar 20, 2013 1:26 pm
by Kent Briggs
You'll need to detect that the user reloaded the page (perhaps with a cookie) and then redirect them back to your login page or to code that calls the AccountsSessionKey API command again to create a fresh key. Session keys can only be used once, which is what makes them secure.

Re: hi i need help for php cod for reload lobby

Posted: Wed Mar 20, 2013 1:35 pm
by iman.wavetv
tnx ket but can give me cod becase i dont no php :(

Re: hi i need help for php cod for reload lobby

Posted: Wed Mar 20, 2013 1:39 pm
by Kent Briggs
iman.wavetv wrote:tnx ket but can give me cod becase i dont no php :(
I don't have anything written. You'll probably need to hire a programmer.