vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=323576

Infinite Login Loop
by deen1982
05 Oct 2016 09:07

Hello all,

We recently started getting login problem in our board. Even if the user gets logged in, they get logged out randomly when they navigate.

To put more detail, here it is:

Step1: User fills credentials and clicks "Log in"
Step 2: User gets redirecting screen with message, "Redirecting.. Thank you for logging in, user"
Step 3: Forum returns to login page again.

I browsed through possible solutions and nothing worked out.
Here is the most suggested solution:
settings- options- Cookies and HTTP Header Options :
Session Timeout = 1200
Path to save cookies = '/'
Cookie Domain= (blank) or ".domainname.com" (tried both, didn't work)

[PS: changing skin from Zen Heat to Default lets user inside the board, but again logs out while navigating through forum]

This login loop is infinite and user traffic is drastically falling, any help is much appreciated.

Dave 05 Oct 2016 12:28

This also happens with all of your plugins disabled?

deen1982 05 Oct 2016 13:32

Quote:

Originally Posted by Dave (Post 2576618)
This also happens with all of your plugins disabled?

Yes I have disabled every plug-in, cleared browser cookies and tried again. Even then I get the same issue .

Seven Skins 05 Oct 2016 14:20

1 Attachment(s)
You car try this...

1 - redirect all users to your domain with or without www .. using .htaccess


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.




2 - Set this settings like below.

http://www.vbulletin.org/forum/attac...1&d=1475676893





3 - Change cookie prefix via config.sys file.





.

deen1982 05 Oct 2016 17:05

Quote:

Originally Posted by Seven Skins (Post 2576623)
You car try this...

1 - redirect all users to your domain with or without www .. using .htaccess


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



.

First of all, thank you for a detailed reply seven skins.
there are so many .htaccess , which one should i edit?
For now I am going to backup and edit ".htaccess-b" found in /public_html/
http://www.grantimage.com/images.php/i3657_doubt.png

RichieBoy67 05 Oct 2016 21:12

It is .htaccess in your public_html directory.

public_html/.htaccess

Lynne 05 Oct 2016 21:35

Did you make sure to clear your cookies and browser cache after changing the settings and then trying to login again?

Try using the default style, set your cookie domain properly (to ".domainname.com"), then clear your browser cookies and cache and then login and see if the site works correctly.

deen1982 06 Oct 2016 09:36

Quote:

Originally Posted by RichieBoy67 (Post 2576639)
It is .htaccess in your public_html directory.

public_html/.htaccess

I have edited that file only. no improvements :(

--------------- Added 06 Oct 2016 at 09:37 ---------------

Quote:

Originally Posted by Lynne (Post 2576641)
Did you make sure to clear your cookies and browser cache after changing the settings and then trying to login again?

Try using the default style, set your cookie domain properly (to ".domainname.com"), then clear your browser cookies and cache and then login and see if the site works correctly.

changed style to "default" skin from AdminCp, set cookie domain to ".domainname.com" , cleared complete data in broswer from beginning of time, even then didn't work :-/

--------------- Added 06 Oct 2016 at 09:44 ---------------

This issue started all of a sudden without any site level modifications from my side. Will there be something to do with hosting service provider?

Seven Skins 06 Oct 2016 13:12

You have to do all three steps I mentioned then it may work.

Lynne 06 Oct 2016 21:22

Have you asked your hosting provider if they changed anything on the server at about the time that this problem started?

deen1982 08 Oct 2016 08:08

Quote:

Originally Posted by Lynne (Post 2576693)
Have you asked your hosting provider if they changed anything on the server at about the time that this problem started?

we asked hosting people to check from their side. They have reset all plugins, now the login loop is fixed. But, we are unable to open Sub-Forums.

It gives error,
Quote:

"Fatal error: Call to a member function parse_bbcode() on a non-object in /home/forumname/public_html/includes/functions_forumdisplay.php on line 176"
When we open threads from "recent post" or a link, it's working fine. Only when we click the subforum, we get error.

what does it mean? Any help?

Lynne 08 Oct 2016 16:58

You are running vB4.1.7 on a server with PHP5.4. That isn't going to work. You either need to go back to PHP5.3 or you need to upgrade to vB4.2.2 (or vB4.2.3).


All times are GMT. The time now is 05:58.

Powered by vBulletin® Version 3.8.14
Copyright © 2022, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.