• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

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