• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Cant change nickname once its set

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
3 posts • Page 1 of 1

Postby neoknight » Thu Oct 25, 2007 12:06 am

Hello,

Im trying to do a external registration/login system to phpfreechat, and i was thinking to do that using something like $params["nick"] = $_SESSION["nickname"]; , however it happens that once the nickname is set, it will stay for that computer/browser no matter what i do.
example:

i upload to the server for the first time the php with the the parameter $params["nick"] = "user1";
i enter the chat and im user1, then i close the window, wait 30 seconds, i change in the php the nick to $params["nick"] = "newuser"; then i go to the chat again, and im still user1!
it doesnt matter if i clear the cache/cookies, or do /rehash , its always stays as "user1".
i tryed everything i could, how can i solve this?
neoknight
New member
 
Posts: 4
Joined: Wed Oct 24, 2007 11:51 pm
Top

Postby neoknight » Thu Oct 25, 2007 3:18 pm

in the meanwhile, based on the search on this forums, i putted the following code in my logout.php

$oldsessionname = session_name();
session_name( 'phpfreechat' );
session_start();
session_destroy();
session_name( $oldsessionname );

but still it doesnt work, i log in in my site, then choose a nickname and enter the chat, then i logout, when i log in again, this time with a diferent user, and also choose a diferent nickname, still the nickname is the same as before
neoknight
New member
 
Posts: 4
Joined: Wed Oct 24, 2007 11:51 pm
Top

Postby neoknight » Fri Oct 26, 2007 11:19 pm

Hello,

now it works, the other thread helped a little bit, i also reduced the timeout time, if im not mistaken, if the timeout is say, 20 secs, and the user logs out and then logs in in less than 20 secs, the nickname will be the same as before
neoknight
New member
 
Posts: 4
Joined: Wed Oct 24, 2007 11:51 pm
Top


Post a reply
3 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 12 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub