Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-05-2016, 07:07 AM
deen1982 deen1982 is offline
 
Join Date: Oct 2011
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Infinite Login Loop

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.
Reply With Quote
  #2  
Old 10-05-2016, 10:28 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This also happens with all of your plugins disabled?
Reply With Quote
  #3  
Old 10-05-2016, 11:32 AM
deen1982 deen1982 is offline
 
Join Date: Oct 2011
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
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 .
Reply With Quote
  #4  
Old 10-05-2016, 12:20 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You car try this...

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

Code:
Redirect non-www to www 
RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]


Redirect www to non-www 
RewriteCond %{HTTP_HOST} ^www.yourdomain.com [NC]
RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301]



2 - Set this settings like below.







3 - Change cookie prefix via config.sys file.





.
Attached Images
File Type: png 001261.png (33.9 KB, 0 views)
Reply With Quote
  #5  
Old 10-05-2016, 03:05 PM
deen1982 deen1982 is offline
 
Join Date: Oct 2011
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Seven Skins View Post
You car try this...

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

Code:
Redirect non-www to www 
RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]


Redirect www to non-www 
RewriteCond %{HTTP_HOST} ^www.yourdomain.com [NC]
RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301]


.
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
Reply With Quote
  #6  
Old 10-05-2016, 07:12 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is .htaccess in your public_html directory.

public_html/.htaccess
Reply With Quote
  #7  
Old 10-05-2016, 07:35 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 10-06-2016, 07:36 AM
deen1982 deen1982 is offline
 
Join Date: Oct 2011
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RichieBoy67 View Post
It is .htaccess in your public_html directory.

public_html/.htaccess
I have edited that file only. no improvements

--------------- Added [DATE]1475746666[/DATE] at [TIME]1475746666[/TIME] ---------------

Quote:
Originally Posted by Lynne View Post
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 [DATE]1475747050[/DATE] at [TIME]1475747050[/TIME] ---------------

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?
Reply With Quote
  #9  
Old 10-06-2016, 11:12 AM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have to do all three steps I mentioned then it may work.
Reply With Quote
  #10  
Old 10-06-2016, 07:22 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:58 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05785 seconds
  • Memory Usage 2,274KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete