• Resolved Rado

    (@jeriksson)


    Hi,

    I have the chat on a wordpress site, but on the same server there are other scripts that use php session for login, i am not a coder but for some reason whenever i have the chat window open in a tab, i get logged out of all the other scripts whenever the ajax runs the auto refresh, any ideas how to fix or what may be causing this? Could it be that the ajax chat is writing an indentical cookie to my browser that overwrites the other ones? Thanks!

    Reply

    https://wordpress.org/plugins/simple-ajax-chat/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Rado

    (@jeriksson)

    Just to add, i do not get logged out of wordpress, just other random scripts i have installed in the wordpress root folder. (not wordpress related stuff)

    Plugin Author Jeff Starr

    (@specialk)

    Yeah most likely there is a conflict with a script or something.. if you want to contact me privately I can take a look at the chat box you have set up and see if anything looks weird.

    Thread Starter Rado

    (@jeriksson)

    that would be cool but its a test site on localhost :/ there’s no problems inside wordpress anymore though just that the chat script is for some reason logging me out from all other scripts i have been testing on the server, any ideas how that could happen? The only thing i could think of is that it writes an identical cookie but where can i change the name of those things in the chat script?

    Thanks for your hard work!

    Plugin Author Jeff Starr

    (@specialk)

    It could be a cookie conflict, and you could test by examining the cookies in your browser. Also I would do a thorough inspection of the plugin settings, as there are options that pertain to whether or not the user is logged-in, etc.

    Thread Starter Rado

    (@jeriksson)

    Sorry for the slow reply, i did do some tests today and it appears its the PHPSESSID cookie that for some reason get reset by the ajax chat script everytime it refreshes, i have turned off “Users have to be logged on to chat” as i hoped it could remove whatever is doing something to the cookie but the issue precists.

    If i run the chat script on another domain then it won’t touch the cookies from the first domain.

    Ideas?

    Plugin Author Jeff Starr

    (@specialk)

    Thanks for the infos, I’ll have to take a closer look and see what’s happening for the next plugin update. The session cookie definitely should not be reset for every refresh, so that’s probably something that will need addressed. Thanks for your feedback on this.

    Plugin Author Jeff Starr

    (@specialk)

    Just to follow up with this, I think the issue you’ve reported is resolved in the forthcoming version of the plugin (v20161116). If you get a chance please check it out and let me know the results. Thanks again for your help and feedback.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘When i have a tab with the chat open my other logged on sessions are logged out’ is closed to new replies.