Welcome, Guest. Please Login or Register.
May 02, 2024, 02:03:56 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  SSI.php's welcome() doesn't read the cookie.. « previous next »
Pages: [1] Reply Ignore Print
Author Topic: SSI.php's welcome() doesn't read the cookie..  (Read 1210 times)
Enc0der
Jr. Member
**
Posts: 90


I love YaBB SE!

WWW
SSI.php's welcome() doesn't read the cookie..
« on: June 16, 2002, 06:14:32 AM »
Reply with quote

Hi!

I'm having problems with SSI.php's welcome function...
When I'm simply take my IE to: http://www.hwzone.co.il/community/SSI.php?function=welcome everything works fine, and it remembers me as a 'logged in user'..
But on my site's pages, when I add <?php include('http://www.hwzone.co.il/community/SSI.php?function=welcome');?>, it doesn't remember me, and ALWAYS shows the 'guest message'...

All the other functions (recentTopics, whosOnline) works great...

Any ideas ?
Logged
new2php
Noobie
*
Posts: 20


Ima wha?

Re:SSI.php's welcome() doesn't read the cookie..
« Reply #1 on: June 19, 2002, 04:06:54 PM »
Reply with quote

I have the same problem. My main page always reads "Welcome Guest"
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:SSI.php's welcome() doesn't read the cookie..
« Reply #2 on: June 19, 2002, 04:11:08 PM »
Reply with quote

Is your board and homepage on different domains or sub-domains by chance?
Logged

jthorpe
Sr. Member
****
Posts: 331


WWW
Re:SSI.php's welcome() doesn't read the cookie..
« Reply #3 on: June 19, 2002, 05:07:21 PM »
Reply with quote

I had this problem early on too.  Come to find out, it was because I was putting the entire url into the include statement.  

It started working when I put this require statement on the very first line of my front page:

<? require("/home/httpd/html/yabbse/SSI.php"); ?>

Then, instead of using full url's in my include statements, I put them in like this:

<? welcome(); ?>
It worked fine after that.
Logged
Enc0der
Jr. Member
**
Posts: 90


I love YaBB SE!

WWW
Re:SSI.php's welcome() doesn't read the cookie..
« Reply #4 on: June 21, 2002, 11:21:47 AM »
Reply with quote

Now I'm getting:
QuoteWarning: Supplied argument is not a valid MySQL result resource in /var/www/html/hwzone/public_html/community/SSI.php on line 96

Warning: Supplied argument is not a valid MySQL result resource in /var/www/html/hwzone/public_html/community/SSI.php on line 99
on the <? welcome(); ?> line...
Logged
Enc0der
Jr. Member
**
Posts: 90


I love YaBB SE!

WWW
Re:SSI.php's welcome() doesn't read the cookie..
« Reply #5 on: June 21, 2002, 05:43:02 PM »
Reply with quote

ok, I removed the "$db_prefix" from SSI.php's welcome() function, and now it's working fine..

thanks!
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  SSI.php's welcome() doesn't read the cookie.. « 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.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.024 seconds with 21 queries.