Welcome, Guest. Please Login or Register.
November 21, 2024, 11:18:35 PM
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  |  FAQ  |  Why can I not stay logged in? « previous next »
Pages: 1 ... 3 4 [5] 6 7 ... 9 Reply Ignore Print
Author Topic: Why can I not stay logged in?  (Read 451815 times)
Roundboy
Jr. Member
**
Posts: 72


I pretend to know everything.

ercdvs@hotmail.com WWW
Re:Why can I not stay logged in?
« Reply #60 on: August 29, 2002, 01:14:09 AM »
Reply with quote

well.. those using IE 3 or 4 and netscape 4.05 have bigger problems then cookies...  time to upgrade people.

Yes.. cookies should be called as you wat them to set..

so:

setcookie("name") // delete cookie
setcookie(name value time path domain) // set cookie

thats how it should be called
Logged

I have trouble seperating games from reality...
... I just used a shotgun on my mother, and she's not respawning.
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:Why can I not stay logged in?
« Reply #61 on: August 29, 2002, 03:02:31 AM »
Reply with quote

Ya I think the cookie problem is more to do with old browsers then the code itself. Most people who have had the problem on my board are using older browsers like IE 5.

This code is for the logout function, make sure you have medizinmann's code installed as well.

  setCookie($cookieusername);
   setCookie($cookieusername,'',time()-3600,"/");
   setCookie($cookiepassword);
   setCookie($cookiepassword,'',time()-3600,"/");
   setCookie('expiretime','-1');

and replace with

  setCookie($cookieusername);
   setCookie($cookieusername,'',time()-3600,"/yabbse/",".yourdomain.com");
   setCookie($cookiepassword);
   setCookie($cookiepassword,'',time()-3600,"/yabbse/",".yourdomain.com");
   setCookie('expiretime','-1',time()-3600,"/yabbse/",".yourdomain.com");
« Last Edit: August 29, 2002, 03:04:36 AM by Gobalopper » Logged
Roundboy
Jr. Member
**
Posts: 72


I pretend to know everything.

ercdvs@hotmail.com WWW
Re:Why can I not stay logged in?
« Reply #62 on: August 29, 2002, 05:39:12 PM »
Reply with quote

be sure to replace "/yabbse" with the actual directory of your board..

or leave it to "/" if you allow ppl to have one universal login for your site...
Logged

I have trouble seperating games from reality...
... I just used a shotgun on my mother, and she's not respawning.
drinkitbitch
Jr. Member
**
Posts: 80


I'm not a llama.

Re:Why can I not stay logged in?
« Reply #63 on: August 30, 2002, 07:19:41 PM »
Reply with quote

So far only one of my members has gotten this error:
/forum/index.php?board=;action=login2
2: Supplied argument is not a valid MySQL result resource
(/home/virtual/site509/fst/var/www/html/forum/Sources/BoardIndex.php ln 49)

I have been talking with her forever now giving her all of these solutions for her to try, and none seem to have worked yet.

She can log in, but then when she goes to check her instant messages or post on a board, it tells her she must log in to do so.

Perhaps I missed the solution to this while trying most of them in this thread. If you know of a definite fix, please let me know!

Logged
mediman
Support Team
YaBB God
*****
Posts: 2858


WWW
Re:Why can I not stay logged in?
« Reply #64 on: August 30, 2002, 07:26:04 PM »
Reply with quote

she has to delete her cookies from harddisk! maybe she is a member in another board or she has an older cookie from your board! logout is not enough!

mediman

p.s. she has to set the security level for your site to low or at least medium!
« Last Edit: August 30, 2002, 07:27:02 PM by mediman » Logged

mainComm Dev Team
drinkitbitch
Jr. Member
**
Posts: 80


I'm not a llama.

Re:Why can I not stay logged in?
« Reply #65 on: August 30, 2002, 07:30:38 PM »
Reply with quote

i had her searching through all the cookies, but she couldnt find the specifc files and didnt want to delete everything because she isnt the only person that uses that computer. I'll have her change the security settings next time i talk to her and see if that works.
Logged
Roundboy
Jr. Member
**
Posts: 72


I pretend to know everything.

ercdvs@hotmail.com WWW
Re:Why can I not stay logged in?
« Reply #66 on: August 30, 2002, 07:53:22 PM »
Reply with quote

That is a mySQL error... not cookies...

line 49 is a if($result) line..

meaning the sql query done before that did not 'query' properly...

This one in fact:
$result = mysql_query("SELECT COUNT(*) as totalm FROM {$db_prefix}messages as m,{$db_prefix}boards as b,{$db_prefix}topics as t,{$db_prefix}categories as c WHERE (m.ID_TOPIC=t.ID_TOPIC && t.ID_BOARD=b.ID_BOARD && b.ID_CAT=c.ID_CAT && ('$settings[7]'='Administrator' || '$settings[7]'='Global Moderator' || FIND_IN_SET('$settings[7]',c.memberGroups)!=0 || c.memberGroups=''))");
looks like it couldn't count the board totals properly when this person tried your board... maybe because it couldn't determine if they were an admin or global moderator.. therefore hiding a portion of the posts...

Try a "recount posts" for craps and giggles
Logged

I have trouble seperating games from reality...
... I just used a shotgun on my mother, and she's not respawning.
drinkitbitch
Jr. Member
**
Posts: 80


I'm not a llama.

Re:Why can I not stay logged in?
« Reply #67 on: August 30, 2002, 08:13:19 PM »
Reply with quote

im actually having a LOT of trouble with my host right now, and plan on switching VERY soon. I'm sure it's a mysql thing now.
Logged
Roundboy
Jr. Member
**
Posts: 72


I pretend to know everything.

ercdvs@hotmail.com WWW
Re:Why can I not stay logged in?
« Reply #68 on: August 30, 2002, 08:52:00 PM »
Reply with quote

mediman.. the error posted above is an error w/ mySQL.

while it could be indirectly *caused* by cookies... its still a mySQL error.

I tried to come up w/ some explination..

it seems to affect this user when it comes to post counts...  by any chance are they a mod or admin?
Logged

I have trouble seperating games from reality...
... I just used a shotgun on my mother, and she's not respawning.
mediman
Support Team
YaBB God
*****
Posts: 2858


WWW
Re:Why can I not stay logged in?
« Reply #69 on: August 30, 2002, 09:40:45 PM »
Reply with quote

fix the cookie issue with your user!

mediman
« Last Edit: August 31, 2002, 02:39:12 AM by mediman » Logged

mainComm Dev Team
drinkitbitch
Jr. Member
**
Posts: 80


I'm not a llama.

Re:Why can I not stay logged in?
« Reply #70 on: August 30, 2002, 10:02:01 PM »
Reply with quote

Quote from: Roundboy on August 30, 2002, 08:52:00 PMmediman.. the error posted above is an error w/ mySQL.

while it could be indirectly *caused* by cookies... its still a mySQL error.

I tried to come up w/ some explination..

it seems to affect this user when it comes to post counts...  by any chance are they a mod or admin?
Nope. they are neither.
Logged
Roundboy
Jr. Member
**
Posts: 72


I pretend to know everything.

ercdvs@hotmail.com WWW
Re:Why can I not stay logged in?
« Reply #71 on: August 31, 2002, 02:04:10 AM »
Reply with quote

Quote from: mediman on August 30, 2002, 09:40:45 PM@roundboy it´s a php error! this error comes not from mysql! php cannot receive results from db coz the cookie is wrong!

ok ok.. I will conceed that this error is returned from php... I am stupid ;)

I just can't see how the cookie is affecting this lookup..  I don't know enough about yabbse internally to comment further....

bottom line is that query isn't working..  but only for that user?  wierd..
Logged

I have trouble seperating games from reality...
... I just used a shotgun on my mother, and she's not respawning.
mediman
Support Team
YaBB God
*****
Posts: 2858


WWW
Re:Why can I not stay logged in?
« Reply #72 on: August 31, 2002, 02:42:32 AM »
Reply with quote

@roundboy i have edited some posts, coz it is not a help to explain how yabbse works!

@drinkitbitch clear the access log in admin section also!

mediman

Logged

mainComm Dev Team
Thomas
Full Member
***
Posts: 203


WWW
Re:Why can I not stay logged in?
« Reply #73 on: September 05, 2002, 01:29:57 PM »
Reply with quote

Quote from: MI Zombie on April 20, 2002, 08:06:37 AMCheck your bookmark that use to go your board and see if you included the www.  This drove me nuts for MONTHS trying to figure it out.
Hi

I encounter the same problems, but where do I change this?

When I go to my forntpage: www.dykkesiden.com (norwegian page, but click in the menu at "Diskuter dykking"). You van then see at the statusbar that the right url is linked: www.dykkesiden.com/forum

However, when you click on it it ends up without www. Where do I change this? ???

/MR.T
Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:Why can I not stay logged in?
« Reply #74 on: September 05, 2002, 11:47:45 PM »
Reply with quote

If you make the changes posted by myself and medizinmann you shouldn't have problems with that anymore.
Logged
Pages: 1 ... 3 4 [5] 6 7 ... 9 Reply Ignore Print 
YaBB SE Community  |  English User Help  |  FAQ  |  Why can I not stay 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.040 seconds with 20 queries.