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
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?
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?