Staying logged in.

Support for IntegraMOD 141

Moderator: Integra Moderator

Staying logged in.

PostAuthor: krillmeed » Fri Oct 05, 2007 4:48 am

Your phpBB Version: 2.0.
phpBB Type: Integramod 141
MODs: Yes
Your knowledge: Basic Knowledge
Board URL: http://www.krillmeed.com/forum/index.php

PHP Version:
MySQL Version:


What was done before the problem appeared?
Nothing


What was done to try to solve the problem?
Cookie mod installed



De.scription and Message

One of my members have asked this question, so i thought it would be better coming from her:

It finally came to my attention, that everytime my IP rolled over my address, I would not be logged on to the board anymore. I can set it to log me in automatically, but when my IP rolled over, I had to log in again when I returned and I would get the warning that my IP address was different and I might not be me.

LIGHT BULB!

I do not know how this affects those with AOL, but it would probably explain why Elorie and possibly others cannot stay logged onto the site. More frequent roll-overs would cause one to not stay logged onto the board... at least in theory.

What to do about it? I don't know, because 1. those with IPs who have very frequent roll-overs don't have control over this issue. 2. Only Krill and Omega can fix security settings and this might present a security problem if they messed with this particular feature.

However, this is only a theory due to experience and observation. My IP address rolls over at least once a week, my setting to stay logged on becomes defunct thus I have to log in again (no biggy since it doesn't happen too often to me) and then I get the warning that my addy has changed after I log in again.

Recommendation? For those who have headaches staying logged on, watch for this warning (it will be at the top of the board after logging in as a tip), and see if my theory pans out for any of you and then report back in this thread after you notice it X amount of times. After that, maybe Krill and Omega can work with the issue.

Also, if my correlation doesn't hold true for any of you having headaches, let us know, because then we will know my theory has no basis and the problem is something else. Thanks.

Elorie, hopefully we can solve your problem with staying logged onto the board as we test my theory. Hopefully, you are not my only guine pig.


I have installed the cookie mod a few times, as for the staying logged in, could this because of i have more than one Integramod forum on my domain? Or as she said, roving IPÂÂ ´s. I do not have this problem with phpbb2 forums i visit, just integramod. Its no biggy, I think Integramod is THE best around, but would be nice to be able to keep going on my sites without having to login again <img>
Last edited by krillmeed on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

krillmeed
Sr Integra Member
Sr Integra Member
 
Posts: 301
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 1:34 am
Cash on hand: 0.00

PostAuthor: gcomfx.com » Wed Nov 21, 2007 9:59 am

I have a few members complaining about not staying logged in. I only have one install.... I haven't found a fix yet.
Last edited by gcomfx.com on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Paul (gcomfx) - 100mphclub.com originator
[size=99px]
User avatar
gcomfx.com
Sr Integra Member
Sr Integra Member
 
Posts: 251
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 12, 2006 9:34 am
Cash on hand: 0.00

PostAuthor: sanji » Fri Nov 23, 2007 5:08 pm

I have noticed a similar problem when I have Webroot Antivirus / Web Browser / Tracking Cookies activated. If this option in my anti-virus is not selected, I can stay connected on my forum and IM, but if this option is selected, I get disconnected every time my IP is changed - which happens often...

sanji
Last edited by sanji on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[img]http://www.secret-japan.com/forum/images/banners/fuji%20secret-japan%2088x31.gif[/img] [url=http]Secret Japan[/url] : discover Japan off the beaten tracks

sanji
Sr Integra Member
Sr Integra Member
 
Posts: 291
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 12, 2006 9:18 pm
Cash on hand: 0.00

PostAuthor: gcomfx.com » Mon Nov 26, 2007 8:31 am

"sanji";p="29472" wrote:I have noticed a similar problem when I have Webroot Antivirus / Web Browser / Tracking Cookies activated. If this option in my anti-virus is not selected, I can stay connected on my forum and IM, but if this option is selected, I get disconnected every time my IP is changed - which happens often...

sanji


I'll give this a test to confirm the results here. Can I ask what the consequences are?
Last edited by gcomfx.com on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Paul (gcomfx) - 100mphclub.com originator
[size=99px]
User avatar
gcomfx.com
Sr Integra Member
Sr Integra Member
 
Posts: 251
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 12, 2006 9:34 am
Cash on hand: 0.00

Re: Staying logged in.

PostAuthor: CaNNon » Mon Nov 26, 2007 8:54 am

I don't think that a forum should keep you logged in when that happens. If the ip has changed then you should have to re authenticate for security reasons.

Logging in again rematches the user and the cookie. Its simple and effective.
Last edited by CaNNon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 12:15 pm
Cash on hand: 0.00

PostAuthor: gcomfx.com » Mon Nov 26, 2007 10:46 am

I agree, but for people that can't control it... AOL users for instance, plus a few people I know checking from their place of work. It's a PITA, and they can't even post.
Last edited by gcomfx.com on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Paul (gcomfx) - 100mphclub.com originator
[size=99px]
User avatar
gcomfx.com
Sr Integra Member
Sr Integra Member
 
Posts: 251
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 12, 2006 9:34 am
Cash on hand: 0.00

Re: Staying logged in.

PostAuthor: CaNNon » Mon Nov 26, 2007 12:39 pm

few people I know checking from their place of work.

Thats not the same thing, they should only get a warning that the account ip has changed.

Could you check a few peeps, see if they are set to stay logged in on one pc and then trying to loggin from another?
Last edited by CaNNon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 12:15 pm
Cash on hand: 0.00

Re: Staying logged in.

PostAuthor: CaNNon » Mon Nov 26, 2007 12:54 pm

I'm starting to notice this happening to me here. Could it be some mod or setting you have in common with this forum that I don't have on mine?
[tab]My ip changes every day and i do stay logged in on my site.
Last edited by CaNNon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 12:15 pm
Cash on hand: 0.00

PostAuthor: gcomfx.com » Mon Nov 26, 2007 1:25 pm

I don't have any mods. Just 1.4.1 installed with a few small bug fixes.
Last edited by gcomfx.com on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Paul (gcomfx) - 100mphclub.com originator
[size=99px]
User avatar
gcomfx.com
Sr Integra Member
Sr Integra Member
 
Posts: 251
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 12, 2006 9:34 am
Cash on hand: 0.00

Re: Staying logged in.

PostAuthor: gcomfx.com » Mon Nov 26, 2007 1:29 pm

"CaNNon";p="29521" wrote:
few people I know checking from their place of work.

Thats not the same thing, they should only get a warning that the account ip has changed.

Could you check a few peeps, see if they are set to stay logged in on one pc and then trying to loggin from another?


Don't think I wrote that clearly. I have two members that can not stay logged in at their place of work. At home they are fine. Their work IP is the same, but they are logging into two different accounts. There was a problem with ONE worker there, but now there are two members and two accounts. They work together and both continue to have the same issues. Weird.
Last edited by gcomfx.com on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Paul (gcomfx) - 100mphclub.com originator
[size=99px]
User avatar
gcomfx.com
Sr Integra Member
Sr Integra Member
 
Posts: 251
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 12, 2006 9:34 am
Cash on hand: 0.00

PostAuthor: gcomfx.com » Mon Nov 26, 2007 2:04 pm

Update on MY issue:

"Hey, I've figured out what's causing the problem. We have 2 completely separate ISPs here. The router right now just switches between the two to whichever one is not in use at the time. We have a cable ISP and a DSL ISP. Do you have an idea on how to make where it just uses one and only uses the other when the primary is non-functional? So it's not a problem on your end :(
Last edited by gcomfx.com on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Paul (gcomfx) - 100mphclub.com originator
[size=99px]
User avatar
gcomfx.com
Sr Integra Member
Sr Integra Member
 
Posts: 251
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 12, 2006 9:34 am
Cash on hand: 0.00

Re: Staying logged in.

PostAuthor: CaNNon » Mon Nov 26, 2007 3:16 pm

errr... no short answer on that one. <img>
Last edited by CaNNon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 12:15 pm
Cash on hand: 0.00

PostAuthor: gcomfx.com » Mon Nov 26, 2007 3:22 pm

Yeah... :)
Last edited by gcomfx.com on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Paul (gcomfx) - 100mphclub.com originator
[size=99px]
User avatar
gcomfx.com
Sr Integra Member
Sr Integra Member
 
Posts: 251
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 12, 2006 9:34 am
Cash on hand: 0.00

Re: Staying logged in.

PostAuthor: CaNNon » Mon Nov 26, 2007 3:28 pm

the router is where they work and not at your server then?
Last edited by CaNNon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 12:15 pm
Cash on hand: 0.00

PostAuthor: gcomfx.com » Mon Nov 26, 2007 3:40 pm

Yes. <img>
Last edited by gcomfx.com on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Paul (gcomfx) - 100mphclub.com originator
[size=99px]
User avatar
gcomfx.com
Sr Integra Member
Sr Integra Member
 
Posts: 251
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 12, 2006 9:34 am
Cash on hand: 0.00

Re: Staying logged in.

PostAuthor: krillmeed » Sat Apr 26, 2008 9:41 am

This does seem to be a AOL Problem, sorry i did not get back to this, but received no email replies for it. This dear lady has got back to me, and i am afraid the problem seems to have got worse. I attach to this post screen shots, of the problem. They have all been passed through my anti virus, and are safe, this does seem to be a AOL problem i think. Please Please Please help, since she is very important to our forum :?
Last edited by krillmeed on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

krillmeed
Sr Integra Member
Sr Integra Member
 
Posts: 301
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 1:34 am
Cash on hand: 0.00

Re: Staying logged in.

PostAuthor: Helter » Sat Apr 26, 2008 1:06 pm

it may be a browser issue also. I am having this problem latley on almost all of the sites I normally visit, including phpbb2, phpbb3 IntegraMOD and nuke forums. Since it is mostly happening in FF, it could be related to a recent FF update, but it is also occasionally happening in IE. I have deleted cookies and caches and reinstalled to no avail. I know what a pain it must be for her.
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

PostAuthor: krillmeed » Sun Apr 27, 2008 12:55 am

She has told me she has bypassed AOL now, and can at least log in. Will keep everyone posted if this solves the problem. Thanks Helterskelter for the quick response. I told her, if you do not have the solution for this, then what chance do us meer mortals have for solving it LOL
Last edited by krillmeed on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

krillmeed
Sr Integra Member
Sr Integra Member
 
Posts: 301
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 1:34 am
Cash on hand: 0.00

Re: Staying logged in.

PostAuthor: meijin » Mon May 05, 2008 5:22 pm

When it coes to AOL users, try this...it is straight from the phpBB folks:


# My AOL based users keep getting logged out!

phpBB2 uses sessions to keep track of users as they browse the board. These sessions use a combination of a unique session id and the users IP to identify each user. We make use of the IP as an extra safe-guard to help prevent sessions being hijacked (by discovering the unique session id).

Unfortunately this only works when the users IP is constant as they browse the board. For most users this will be the case. However certain providers route their users via a cluster of proxys. In some cases, particularly AOL this results in different IPs being forwarded as the user moves between pages. We take account of this by not checking the entire IP but only the first "three quads". Again in most cases this will be fine. However again AOL uses IPs which can vary so much that checking only the first two quads results in a fairly static IP being available for session validation.

If you are experiencing problems related to this you can make a small change to the code. Please note that reducing the IP validation length does potentially increase the risk of sessions being hijacked (this is something for you to consider, phpBB Group takes no responsibility should anything happen!). The change requires you to open the file sessions.php in the includes/ directory of the distribution. Find line 250, it contains the following

$ip_check_s = substr($userdata['session_ip'], 0, 6);

change this to:

$ip_check_s = substr($userdata['session_ip'], 0, 4);

You need to make exactly the same change to the number 6 in the next line. Save the file (and upload it if required). This should reduce or eliminate the problem noted.
Last edited by meijin on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Michael
User avatar
meijin
Members
Members
 
Posts: 62
Likes: 0 post
Liked in: 0 post
Joined: Fri Feb 22, 2008 2:16 am
Cash on hand: 0.00

Re: Staying logged in.

PostAuthor: krillmeed » Mon May 05, 2008 10:12 pm

Please note that reducing the IP validation length does potentially increase the risk of sessions being hijacked (this is something for you to consider, phpBB Group takes no responsibility should anything happen!).


What does this mean? If i carry this out it will be possible to hack my forum?

Thanks for the detailed answer by the way <img>
Last edited by krillmeed on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

krillmeed
Sr Integra Member
Sr Integra Member
 
Posts: 301
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 1:34 am
Cash on hand: 0.00

Re: Staying logged in.

PostAuthor: meijin » Mon May 05, 2008 10:31 pm

I'll let the more experienced folks speak more indepth on this, but I have been told that this does not add an unnecessary security risk in the overall scheme of things.
Last edited by meijin on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Michael
User avatar
meijin
Members
Members
 
Posts: 62
Likes: 0 post
Liked in: 0 post
Joined: Fri Feb 22, 2008 2:16 am
Cash on hand: 0.00

Re: Staying logged in.

PostAuthor: Helter » Tue May 06, 2008 1:25 am

every forum is possible to hack, if the culprit is determined and smart enough. This fix just makes your forum a little more vulnerable to a specific type of hack.
Generally .script kiddies dont know what they are doing, they just read that whatever .script they downloaded will work on specific types of forums. If you have several users who need this fix, then you have to weight the benefits against the risk.
I think that in order for this fix to work, you might also have to adjust CTracker, because it also reviews ips.
This is also the type of fix that should remain a secret . The fewer the ppl who know about any drop in security the better.
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

Re: Staying logged in.

PostAuthor: meijin » Tue May 06, 2008 1:38 am

Any ideas what would need to be done with CTTracker? I have held off on this, but have a TON of AOL users that are trying (unsuccessfully) to use my site.

Thanks!
Last edited by meijin on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Michael
User avatar
meijin
Members
Members
 
Posts: 62
Likes: 0 post
Liked in: 0 post
Joined: Fri Feb 22, 2008 2:16 am
Cash on hand: 0.00

Re: Staying logged in.

PostAuthor: CaNNon » Tue May 06, 2008 8:36 am

Try it meijin, run it and have a AOL user test. Make sure you back up the file first,do the edit then set CT in debug mode and have the AOL user try everything.

lets say for comparing:

122.2.231.24 is the full ip.
122.2.23* is what they are matching to the sessions.
122.2* and is what they are suggesting for the new match to sessions.

Don't get me wrong helter is right you are lowering your protection but I think there is still enough geography in the handling that you be should ok. What you should also do though is protect/watch admin accounts in this case though.
Last edited by CaNNon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 12:15 pm
Cash on hand: 0.00

PostAuthor: krillmeed » Tue May 06, 2008 10:21 am

As far as i know it is only one user. She can now stay logged in by bypassing AOL. So i think for securities sake i will leave it at least for the moment.
I would appreciate though meijin if you post any changes you have to make to CTTracker for future reference if you donÂÂÂ ´t mind.
Last edited by krillmeed on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

krillmeed
Sr Integra Member
Sr Integra Member
 
Posts: 301
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 1:34 am
Cash on hand: 0.00

Re: Staying logged in.

PostAuthor: Helter » Tue May 06, 2008 10:03 pm

i looked through the CT Login IP Feature and it looks like it will not ban. It will just warn of the changes. In not sure what affect it will have on your sessions table though
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x


Return to IntegraMOD 141

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]