For general discussion of the Poker Mavens software
iman.wavetv
Posts: 3 Joined: Sun Mar 10, 2013 9:49 am
Post
by iman.wavetv » Wed Mar 20, 2013 1:07 pm
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
Kent Briggs
Site Admin
Posts: 5880 Joined: Wed Mar 19, 2008 8:47 pm
Post
by Kent Briggs » Wed Mar 20, 2013 1:26 pm
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.
iman.wavetv
Posts: 3 Joined: Sun Mar 10, 2013 9:49 am
Post
by iman.wavetv » Wed Mar 20, 2013 1:35 pm
tnx ket but can give me cod becase i dont no php
Kent Briggs
Site Admin
Posts: 5880 Joined: Wed Mar 19, 2008 8:47 pm
Post
by Kent Briggs » Wed Mar 20, 2013 1:39 pm
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.