Welcome, Guest. Please Login or Register.
May 31, 2023, 11:23:56 AM
Home Help Search Login Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Converters  |  Topic: Sessions don't carry over to yabbse pages. « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Sessions don't carry over to yabbse pages.  (Read 101621 times)
bigtoeski
Noobie
*
Posts: 2


I'm a llama!


Sessions don't carry over to yabbse pages.
« on: March 30, 2004, 04:07:30 PM »
Reply with quote

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
« Last Edit: March 30, 2004, 04:09:25 PM by bigtoeski » Logged
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.


WWW
Re:Sessions don't carry over to yabbse pages.
« Reply #1 on: March 30, 2004, 04:23:07 PM »
Reply with quote

YaBBSE already has session code in it. So chances are your sessions code would be interfereing with it.
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
bigtoeski
Noobie
*
Posts: 2


I'm a llama!


Re:Sessions don't carry over to yabbse pages.
« Reply #2 on: March 30, 2004, 04:29:53 PM »
Reply with quote

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?

Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830



WWW
Re:Sessions don't carry over to yabbse pages.
« Reply #3 on: March 30, 2004, 11:02:26 PM »
Reply with quote

SMF has much better session support.

YaBB SE just uses sessions for basic auth.

-[Unknown]
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Converters  |  Topic: Sessions don't carry over to yabbse pages. « previous next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.0.19 | SMF © 2021, Simple Machines
Valid XHTML 1.0! Valid CSS!
Page created in 0.067 seconds with 28 queries.