PDA

View Full Version : SessionID


eaglelegend
01-06-2010, 06:54 AM
Hi,

Does the script use sessions at all? a script I am trying to intergrate requires sessions, any idea how I can create the session ID for the user if there isnt one already available?

Thanks,

Mark

Arianna
01-06-2010, 08:39 AM
You could set a session on the login page, maybe?
Something like this might go,
$_SESSION['auth'] = $loggedinname;
I'm not sure how to get the actual session ID, though. :P Sorry that I couldn't help there.

eaglelegend
01-06-2010, 08:55 AM
OK Ariana I want to be honest with you guys, I am trying to intergrate MochaMedia Bridge to the script, but I am now struggling, I dont completely understand the manual they provide, any help?

https://www.mochimedia.com/support/pub_docs#boards

it may be useful to you guys also if you want to earn a bit while your fans play games on your site!

Arianna
01-06-2010, 09:29 AM
This sounds interesting. :) lol, I won't use it, but I don't see where you need the session from. xD I'm being dense here, but doesn't it say that the session id is optional? xD In the same code, it states:
// optional
options.sessionID = "sf908uw098urerjw3948";
Also, this is javascript. I don't know how, but you're going to need to transfer the javascript into whatever document you have via PHP, I'll assume, right?

eaglelegend
01-06-2010, 10:34 AM
I was wondering weather Brandon's code had it or not, if not I was thinking of putting it in anyway, but I have decided against it. and I am no Javascript expert sadly:s

BMR777
01-06-2010, 03:58 PM
No, the script doesn't use sessions. Everything is cookie based. What is needed for the integration, ex are you trying to integrate user accounts or something else?