Skip to:
Content
Pages
Categories
Search
Top
Bottom

Integrating Ajax Chat – How to reuse an existing session cookie?

  • @rareexample

    Member

    Hi All,

    I’m wondering if someone can point me in the right direction, note I’m not very good with php/code.

    I’m trying to implement a live chat shoutbox with bbpress using Ajax Chat. My goal is to get users logged in to bbpress, automatically log in with their BBpress credentials into the Chat.

    In the Ajax chat wiki, it seems simple enough as they state:

    If you want to reuse an existing session cookie set from another application just adjust the following setting in lib/config.php:

    // Session handling:

    $config = ‘PHPSESSID’;

    Change PHPSESSID to the name of the session cookie you want to use.

    I guess my question is, what is BBpress’s PHPSESSID and how can I make this work?

    Thanks in advance!

    Cheers

    Wiki over at : http://ajax-chat.wiki.sourceforge.net/Reuse+existing+session+cookie

Viewing 12 replies - 1 through 12 (of 12 total)
  • @swaymedia

    Member

    Would love to know this also.

    @chrishajer

    Participant

    I don’t believe bbPress uses sessions at all.

    @rareexample

    Member

    Hmm, any recommendation for a live shoutbox or live chat implementation?

    @finalwebsites

    Participant

    right no session at all :)

    @rareexample, just use the cookies created by bbpress (using firefox it’s easy to discover the cookies)

    @pikatore

    Member

    @finalwebsites, how do you use firefox to discover the cookies?

    @pikatore

    Member

    correction: trying to view cookies. bbpress doesn’t even use cookies.

    @ipstenu

    Moderator

    bbPress does use cookies. Go to Tools -> Options -> Privacy and click on ‘Remove individual cookies’

    In there, search for your URL.

    @pikatore

    Member

    ??? there is no options>privacy window. just tools, nothing else.

    @pikatore

    Member

    bump, for the love of god!!!

    @ipstenu

    Moderator

    pikatore, please relax. This is a VOLUNTEER forum, and you have to be patient or you’ll piss everyone off and no one will help you. Okay?

    It sounds like, since your TOOLS menu doesn’t have options, you’re on a Macintosh, which means you need to go to Firefox -> Preferences -> Privacy.

    Finding out where cookies are stored in your browser is pretty standard stuff. You could also google it :)

    @pikatore

    Member

    ok, cookie found.

    PHPSESSID

    and i have a value for it.

    is it a simple matter of subbing that value into the line of code in the first post?

    what will that do? does it make the chat function use your login name?

    @pikatore

    Member

    array();

    I want that to be pointed to a particular value in a different database. how would i do that?

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.
Skip to toolbar