Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Multiple Sesssions PHP Related

Newbie Spellweaver
Joined
Dec 16, 2012
Messages
25
Reaction score
0
Hi

I need to somehow name the session when user is logging in, I want to deploy 2nd server but looking at code looks like if i logged in as admin in 1st server and then i go to 2nd server/dorf1.php im gonna be logged in as admin even if on 2nd server that user is not registered, first i thought i need to change cookie names, but looks like session are in the code as well so i'm wondering how to name session so 1st and 2nd would not run the same session and player could play on both server with different accounts.

Atm im looking at Session.php

PHP:
$_SESSION['sessid'] = $generator->generateRandID();

PHP:
if(!isset($_SESSION['wid']))

if i changed lets say wid to wid2 on my 2nd server and on my 1st i would leave just wid, would that solve my problem or i would need to change wid to wid2 in all the files?
 
Back
Top