Sessions when in another application.

adams

Joined: 2003-03-27
Posts: 18
Posted: Wed, 2003-04-30 03:36

I have succesfully got gallery working in <!-- BBCode Start --><A HREF="http://yabbse.org" TARGET="_blank">YaBBSE</A><!-- BBCode End --> but am having an issue where users have to log out twice to log out.
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE>
if ($sesc != session_id())
fatal_error($txt['yse305']); </TD></TR></TABLE><!-- BBCode End -->

Is what is causing the error and though I'm not at all sure I think it may because gallery is creating a session with a new session_id so when YaBB goes to log out and it checks the session it can't find it.

Does this make sence? Should session_start(); be removed from my sessions.php if it is embeded with an exisiting session?

 
vampy

Joined: 2002-12-05
Posts: 86
Posted: Mon, 2003-05-05 15:05

Hi! I'm using YaBBSE. Could you tell me how to integrate gallery into yabbse? Please, pretty please! (with lots of sugars).... :D

 
adams

Joined: 2003-03-27
Posts: 18
Posted: Wed, 2003-05-07 21:31

My version is slightly hacked so its not so easy to tell how I did it. Do you need an idiot proof guide or just enough to get you going? I could just e-mail you my source files if that is the kind of help you are looking for.

 
vampy

Joined: 2002-12-05
Posts: 86
Posted: Thu, 2003-05-08 03:28

Yeah. Could you mail me your source files? My emal addy is

Thanks so much.

 
LoonyPandora

Joined: 2003-06-02
Posts: 4
Posted: Mon, 2003-06-02 19:13

Hi there,

I'm running YaBB Gold (Perl version, using flatfiles) and I'm looking into integrating gallery into that, and would like to ask a few questions:

When you say you have 'integrated' gallery, and YaBB SE, do you mean true integration (where gallery uses the same user database, and does password authentication) - or is it a cookie based hack?

If it is the latter, could you give me a few pointers on what to do? I can adapt a cookie detection routine for use with YaBB gold, just wondering where you put this code into your gallery.

If it is the former, how did you manage this? it may be possible for me to adapt it for use with YaBB Gold

I'm very confident of my perl skills, but PHP is fairly new to me, Also I don't know the internal layout of the code in Gallery too well, so I'm not confident.

any help would be most appreciated. :D