• 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

php session problem

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

Post a reply
2 posts • Page 1 of 1

Postby jwaldek » Thu Oct 04, 2007 8:59 am

i try to integrate phpfreechat with my cms but chat don't works when i use session_start() in my cms before chat include

it's works only when i use:

session_name( "phpfreechat" );
if(session_id() == "") @session_start();

to start sessions in cms but
session_name( "phpfreechat" );
isn't perfect solution for my cms
jwaldek
Member
 
Posts: 19
Joined: Thu Oct 04, 2007 8:37 am
Top

Postby phpfreechat » Thu Oct 04, 2007 9:06 am

Could you try this patch ?
Code: Select all
Index: src/pfcuserconfig.class.php
===================================================================
--- src/pfcuserconfig.class.php (révision 1196)
+++ src/pfcuserconfig.class.php (copie de travail)
@@ -21,8 +21,11 @@
     $c =& pfcGlobalConfig::Instance();

     // start the session : session is used for locking purpose and cache purpose
-    session_name( "phpfreechat" );
-    if(session_id() == "") session_start();
+    if(session_id() == "")
+    {
+      session_name( "phpfreechat" );
+      session_start();
+    }

     //    echo "pfcUserConfig()<br>";

@@ -138,4 +141,4 @@
   }
 }
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top


Post a reply
2 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 29 guests

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