PoolChat: Staying logged in problem - PoolChat

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Staying logged in problem

#1 User is offline   Leftoverchinese 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 317
  • Joined: 22-September 05

Posted 20 October 2005 - 12:36 PM

I have a problem that after I log in if my account is idle for a minute it logs me out. So if I am in the middle of a lengthy post, by the time I hit submit, it says I do not have permission to post here and returns me to the menu. I then lose everything that I have typed and generally do not feel like retyping it. Its happened to me a number of times even prior to the new look. Is there something that I do not have setup properly on my end?
0

#2 User is offline   WebDude 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 225
  • Joined: 05-March 05

Posted 20 October 2005 - 11:20 PM

What kind of internet connection do you have? Let's see... we use cookies to track logins. Perhaps a 'security' program blocked the cookie, such as a firewall, antivirus (McAfee does some weird things, if you don't watch), or even anti-popup program.

I suggest you use Mozilla Firefox as your web browser. It can be downloaded at www.mozilla.org. It is more secure than IE, and does a lot of things better.

This is the most probable issue. Another possibility is that your broadband connection is constantly sending from a different IP. That would be weird, but it's happened. You will either have to deal, or talk to your broadband provider about that.
0

#3 Guest__*

  • Group: Guests

Posted 01 December 2006 - 10:15 PM

My problem is each time I restart my computer I MUST RE LOGGIN... :cry:
0

#4 User is offline   liquibyte 

  • Group: Members
  • Posts: 2
  • Joined: 10-December 06

Posted 10 December 2006 - 02:36 PM

The cookie thing is a forum problem, not ISP or browser related. How do I know this you ask? I belong to many, many forums across the net and not one of them has this problem. Without looking at the code and actually setting this particular variation on a theme up for myself I couldn't tell you where your configuration error is, just that it is. I seem to remember something about set-session and get-session or something along those lines. Your forum isn't setting the cookie right I believe, and off of the top of my head I don't remember the way to set it in php. I've set up no less than five different versions of forum software, all of it in php and going back to ubb when it was new. Not that I code in php mind you but syntax is rather similar to the c based code, and I have played with it a bit. Besides installation and administration as opposed to coding are very different things.

Setting a cookie
setcookie("check", "ok");


Testing a cookie
if ($_COOKIE["check"] == "ok")

{

  // stuff to do if we find the cookie

}


Code to insert to use cookie
<?

$cookie_error = "";

if ($_COOKIE["check"] != "ok") // only continue if we see no cookie

{

  if ($_GET["docheck"] == "yes") // if this is the round-trip--we already set cookie, but we can't read it

  {

	$cookie_error = "<div style="width: 30%; margin: 0 35% 0 35%; padding: 15px; border: 1px solid black; background-color: #ccc; color: #000;">Unfortunately, it looks like your browser doesn't accept cookies. Our site requires them to be able to remember you while you're signed in. <a href="http://www.betterbrowsing.com/how-to/?enable_cookies/">How to enable cookies</a>.</div>";

  }

  else // this is the first page. Let's set a cookie and send the user to the second page

  {

	setcookie("check", "ok"); // try to set a cookie

   $checkcode = "&docheck=yes"; // add query string item to show we've tried to set a cookie

	if ($_SERVER["QUERY_STRING"] == "")

	{

	  $checkcode = "?$checkcode";

	}

	header("Location: " . $_SERVER["REQUEST_URI"] . $checkcode);

  }

}

?>


Shamelessly stolen from the net @ http://www.webmonkey.com/webmonkey/06/26/i...?tw=programming .

Just so that you know, I don't run an anti-virus and/or a firewall. The reason for this is that I'm on a linux box and don't use windows at all and really don't need an anti-virus and am behind a router and a secondary system that acts as my filter (read firewall) to the rest of the world. Sure, I know a dertermined assailant could probably get through but I guarantee no script kiddie can. I'm not that interesting and neither are my systems anyway.
0

#5 User is offline   liquibyte 

  • Group: Members
  • Posts: 2
  • Joined: 10-December 06

Posted 10 December 2006 - 05:22 PM

OK, I did a little investigating as this was happening to me too. As far as I can tell, clearing cookies and logging back in resets the pool_chat_session hash which looks to be a 64 bit key to me. I've got the code on my system (1.05Rev4) and am going to look into it further, I love a challenge. They do have v1.08.12 out though and an upgrade is usually recommended on a proven update. I've been reading the bug reports and the coders have had prior problems with session ID's. Just for the curious, here are the cookies that get set in order of appearance (devoid of identifying information of course).


[NewBBLastVisit]

Name: NewBBLastVisit

Content: **********

Host: www.poolchat.net

Path: /

Send For: Any type of connection

Expires: 12/10/2007 04:49:15 PM

[NewBBCurrentVisit]

Name: NewBBCurrentVisit

Content: **********

Host: www.poolchat.net

Path: /

Send For: Any type of connection

Expires: at end of session

[pool_chat_session]

Name: pool_chat_session

Content: ********************************

Host: www.poolchat.net

Path: /

Send For: Any type of connection

Expires: 04/05/2007 11:35:54 AM

0

#6 User is offline   FASTLARRY 

  • Billiards Professional
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Root Admin
  • Posts: 17,329
  • Joined: 16-July 03
  • Gender:Male
  • Location:Atlanta, Georgia
  • Interests:Pool & Billiards, 3-cushion, broads, booze, cards, golf, scuba diving, traveling, tennis.

Posted 19 December 2006 - 06:27 PM

Help us solve the problem, call me, 770-381-6609
"Fast Larry" Guninger
The Power Source Traveling Pool School. To see my web page come alive click here: www.fastlarrypool.com
0

#7 User is offline   FASTLARRY 

  • Billiards Professional
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Root Admin
  • Posts: 17,329
  • Joined: 16-July 03
  • Gender:Male
  • Location:Atlanta, Georgia
  • Interests:Pool & Billiards, 3-cushion, broads, booze, cards, golf, scuba diving, traveling, tennis.

Posted 21 January 2007 - 02:07 PM

If there is any one out there who has the technical skills to repair a couple of glitches on the system who wants to barter some time for some stuff he should contact me at
770-381-6609
email me at fastlarry@bellsouth.net

You would have to have experience working on the back end of one of these and know code.

There are several problems here I can't fix and I am stumped on them.

I hear your call and I am sorry I can not respond to you. If I could, I would.
"Fast Larry" Guninger
The Power Source Traveling Pool School. To see my web page come alive click here: www.fastlarrypool.com
0

#8 User is offline   John 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 140
  • Joined: 27-June 08
  • Gender:Male
  • Location:Marietta, Georgia

Posted 04 October 2008 - 05:48 PM

View Post' date='Oct 20 2005, 01:36 PM said:

I have a problem that after I log in if my account is idle for a minute it logs me out. So if I am in the middle of a lengthy post, by the time I hit submit, it says I do not have permission to post here and returns me to the menu. I then lose everything that I have typed and generally do not feel like retyping it. Its happened to me a number of times even prior to the new look. Is there something that I do not have setup properly on my end?

I know this is an old issue, but is anyone having problems staying logged in?
Family Motto: Factis Non Verbis - By Deeds Not Words
0

#9 User is offline   FASTLARRY 

  • Billiards Professional
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Root Admin
  • Posts: 17,329
  • Joined: 16-July 03
  • Gender:Male
  • Location:Atlanta, Georgia
  • Interests:Pool & Billiards, 3-cushion, broads, booze, cards, golf, scuba diving, traveling, tennis.

Posted 05 November 2008 - 04:28 PM

View PostJohn, on Oct 4 2008, 05:48 PM, said:

I know this is an old issue, but is anyone having problems staying logged in?



THIS IS ONE I THINK I HAVE FIXED, SO IF YOU HAVE THIS PROBLEM, REPORT IT HERE.
"Fast Larry" Guninger
The Power Source Traveling Pool School. To see my web page come alive click here: www.fastlarrypool.com
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users