YaBB SE Community

Development => Converters => Topic started by: bigtoeski on March 30, 2004, 04:07:30 PM

Title: Sessions don't carry over to yabbse pages.
Post by: bigtoeski on March 30, 2004, 04:07:30 PM
I am very new to yabbse and to php mysql.  I am working on a website where users log into a site using php sessions where they can navigate to different areas of the site, one of them being able to navigate to the yabbse forum.  

I have placed a header file in the template.php file which checks to make sure their session is valid and has the session_start() command  before any other code is executed.  This doesn't seem to work cause any time the user navigates to yabbse somehow the session gets destroyed and the session id is ' '.  I then thought that maybe the template.php doesn't get called on all pages so I went and added session_start(); to each php file but that didn't do the trick either.  

Is there some code somewhere that gets rid of my session? I know yabbse uses cookies to handle users staying logged in from page to page and I am trying to use sessions with cookies.  Will that work?

Again I am very much a newbie  :o and any help or suggestions on this would help!!  Thanks in advance!

Tony
Title: Re:Sessions don't carry over to yabbse pages.
Post by: Chris Cromer on March 30, 2004, 04:23:07 PM
YaBBSE already has session code in it. So chances are your sessions code would be interfereing with it.
Title: Re:Sessions don't carry over to yabbse pages.
Post by: bigtoeski on March 30, 2004, 04:29:53 PM
So yabbse uses persistent cookies - the ones that get stored on the client hard drive, as well as session cookies?  Is there anyway I could get my session to work along side yabbse's session?

Title: Re:Sessions don't carry over to yabbse pages.
Post by: [Unknown] on March 30, 2004, 11:02:26 PM
SMF has much better session support.

YaBB SE just uses sessions for basic auth.

-[Unknown]