PDA

View Full Version : Help with Username


dknelson
01-24-2016, 09:47 PM
I am trying to configure a newly installed chat room. It also includes a mobile app. The chat room is working ok but I am having a problem with some settings for the mobile app.

It asks for this:

$_SESSION['_userNAME_'] = "";
$_SESSION['_userID_'] = "";

For userID.....userID works fine.

For userNAME....I don't know what to use. If I try "userNAME"...that is what I get on the logged in users page...they all say "userNAME" instead of their actual chosen usernames.

Stratis
01-25-2016, 09:28 AM
I am not a coder, but you can try this.

$_SESSION['_userNAME_'] = $username;
$_SESSION['_userID_'] = $id;

dknelson
01-25-2016, 09:31 AM
Thanks...I'll give it a try but "userID" did work for userID. It's only "username" that didn't work.