Welcome, Guest. Please Login or Register.
October 06, 2024, 08:30:00 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  Login cookie problem.. front page not logged in? « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: Login cookie problem.. front page not logged in?  (Read 642 times)
Sausage
Full Member
***
Posts: 122


I'm a llama!

Login cookie problem.. front page not logged in?
« on: May 11, 2003, 01:35:04 PM »
Reply with quote

I have a YaBBSE forum using 1.5.1 now.

My problem is regarding the login cookie. I logged in, and clicked on 'always stay logged in'.

Now, whever I revisit my forum page, the top says 'welcome guest, login or register'. However, this only happens on the very front page of the forum. If I click on any of the boards, the top right display shows my logged-in name and messages waiting.

What is the reason for this? It's annoying because this prevents the new postings from showing up in the boardindex as it recognizes me as a guest rather than a registered user.

Logged
Ben_S
Disciple of Joe
Support Team
YaBB God
*****
Posts: 1586


I Love YaBB SE!

WWW
Re:Login cookie problem.. front page not logged in?
« Reply #1 on: May 11, 2003, 01:49:51 PM »
Reply with quote

any chance of a url?
Logged
andrea
Global Moderator
YaBB God
*****
Posts: 4400


Peace on Earth

WWW
Re:Login cookie problem.. front page not logged in?
« Reply #2 on: May 11, 2003, 03:36:12 PM »
Reply with quote

and of a phpinfo?
Logged

Sausage
Full Member
***
Posts: 122


I'm a llama!

Re:Login cookie problem.. front page not logged in?
« Reply #3 on: May 12, 2003, 12:07:18 AM »
Reply with quote

The URL is

http://www.singaporeanimenews.net/YaBBSE

phpinfo is here.

http://www.singaporeanimenews.net/YaBBSE/phpinfo.php
Logged
Sausage
Full Member
***
Posts: 122


I'm a llama!

Re:Login cookie problem.. front page not logged in?
« Reply #4 on: May 12, 2003, 12:07:46 AM »
Reply with quote

The URL is

http://www.singaporeanimenews.net/YaBBSE


Test user account is here.
name: testuser
password: testing


phpinfo is here.

http://www.singaporeanimenews.net/YaBBSE/phpinfo.php
« Last Edit: May 12, 2003, 12:21:19 AM by Sausage » Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:Login cookie problem.. front page not logged in?
« Reply #5 on: May 12, 2003, 12:28:00 AM »
Reply with quote

I sent an IM to you on your board about the problem.
« Last Edit: May 12, 2003, 12:28:29 AM by Gobalopper » Logged
Sausage
Full Member
***
Posts: 122


I'm a llama!

Re:Login cookie problem.. front page not logged in?
« Reply #6 on: May 12, 2003, 01:47:04 AM »
Reply with quote

Hi,
thanks for the reply, but I don't quite understand.

You said my cookie was stored as

www.singaporeanimenews.net

instead of

.singaporeanimenews.net


but in my admin panel, i have already configured the cookie name as

YaBBSECookie151


There's no mention of www.anything.at.all in my admin panel regarding cookies.
Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:Login cookie problem.. front page not logged in?
« Reply #7 on: May 12, 2003, 02:31:11 AM »
Reply with quote

You can't set the domain of your cookie through the admin panel. You can only set the name of the cookie.

If you want to change the domain you could try selecting store cookies locally from the mod settings page but I'm not 100% sure that will work either.

You could do what I do and set the cookie by changing the code directly like so:

in LogInOut.php find:
   setCookie($cookiename, $cookie, $ctime, $cookie_url[1], $cookie_url[0]);
with
   setCookie($cookiename, $cookie, $ctime, "/", ".singaporeanimenews.net");
Logged
Sausage
Full Member
***
Posts: 122


I'm a llama!

Re:Login cookie problem.. front page not logged in?
« Reply #8 on: May 12, 2003, 02:50:24 AM »
Reply with quote

But how in the world did this problem come about? I was running 1.5.1 for a month without this problem. I just had my whole site shifted to another server last week and that was when this problem first appeared.
Logged
Michele
Beta Tester
YaBB God
*****
Posts: 584


I can't wait for YaBB SE 2!

Mad+Moya WWW
Re:Login cookie problem.. front page not logged in?
« Reply #9 on: May 12, 2003, 02:55:38 AM »
Reply with quote

Can't he just go into Admin and change the BoardURL to singaporeanimenews.net ? Wouldn't that work... for cookies to work, you can only access it the way it's stored in admin... if it has www. you need www. in path you put in your browser.  
Logged

formerly Mad Moya
PfaBB - http://pfabb.lunabyte.com
Douglas
aka The Bear
Support Team
YaBB God
*****
Posts: 1050


Bears rule! Llamas rule too!

WWW
Re:Login cookie problem.. front page not logged in?
« Reply #10 on: May 12, 2003, 03:03:48 AM »
Reply with quote

Looks like we may need to make a suggestion to the Devel team to add in some additional features...

"Additional Domain Aliases YSE runs under" and include the ability to have the cookie check for with or without www in the URL.

Maybe make it a text box, one URL per line?
Okay, let me clarify...

Site runs under http://www.yoursite.com/.  There's also two other URL's that will work to gain access to the site.  "Additional Domain Aliases YSE Runs Under contains the following, in a text area box:

http://yoursite.com/
http://www.blahdeblah.com/~yoursite/

The log in cookie would work under any of those URL's.  Could save someone from having to log in twice if they access the site with or without the www in the domain.
Logged

Need help? Please SEARCH first.  No need for a bad attitude, we like helping positive minded people.
ComeHit.us Short URL  redirection svcs with YSE powered forums, COMING SOON!
Want to say thanks?  Check out http://comehit.us/?u=3
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:Login cookie problem.. front page not logged in?
« Reply #11 on: May 12, 2003, 03:10:22 AM »
Reply with quote

I think instead of using local cookies it would make sense to allow people to type in their own domain info. If they don't type in anything assume they want the cookie to be stored as ".sitename.com" with the folder as "/".

Michele that might work but some servers will redirect that to www.site.com even if you type site.com.
Logged
Sausage
Full Member
***
Posts: 122


I'm a llama!

Re:Login cookie problem.. front page not logged in?
« Reply #12 on: May 12, 2003, 03:46:53 AM »
Reply with quote

Could some security settings on the host be causing this problem? Like I said, I have been running 1.5.1 for more than a month on another server and everything worked fine until the server change.
Logged
andrea
Global Moderator
YaBB God
*****
Posts: 4400


Peace on Earth

WWW
Re:Login cookie problem.. front page not logged in?
« Reply #13 on: May 12, 2003, 05:14:55 AM »
Reply with quote

Quote from: Sausage on May 12, 2003, 03:46:53 AM
Could some security settings on the host be causing this problem? Like I said, I have been running 1.5.1 for more than a month on another server and everything worked fine until the server change.

Some host setting or some redirection setting. When I click the link here
Quotehttp://www.singaporeanimenews.net/
I am redirected to http://singaporeanimenews.net/ (without "www") and a javascript errror shows at the browser bottom bar (MSIE). If I change the url back to conatin the "www" I am able to login and stay login.

I suppose it is some kind of referer check, maybe in the javascript, redirecting to the wrong url (without www). Wrong because the cookie is sensitive on the precise url (with or without www is essential).
Logged

tonyc
Noobie
*
Posts: 33


I'm a redneck!

countryman816@hotmail.com
Re:Login cookie problem.. front page not logged in?
« Reply #14 on: May 12, 2003, 05:19:02 PM »
Reply with quote

I had the exact same problem, tried everything that I seen posted in here. Nothing seemed to help. Then today I found something totally by accident. When I went to my board I happened to notice that the url was listed as http://ohio-walleye.com/yabbse/index.php, I was listed as "guest" as usual. I then hit the home button and I was listed as "admin", when I looked at the url it said "http://www.ohio-walleye.com/yabbse/index.php. That got me to thinking about the html button that brings me there from my home page, I changed the url on the button to include the "www" and it works perfectly!!!!  I was totaly blown away. I had been fighting that for over a month, trying anything I can think of with out any remedy.


thanks.

Tony
Logged
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Login cookie problem.. front page not logged in? « 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.103 seconds with 20 queries.