vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Infinite Login Loop (https://vborg.vbsupport.ru/showthread.php?t=323576)

deen1982 10-05-2016 07:07 AM

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.

Dave 10-05-2016 10:28 AM

This also happens with all of your plugins disabled?

deen1982 10-05-2016 11:32 AM

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 10-05-2016 12:20 PM

1 Attachment(s)
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.

https://vborg.vbsupport.ru/attachmen...1&d=1475676893





3 - Change cookie prefix via config.sys file.





.

deen1982 10-05-2016 03:05 PM

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

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

RichieBoy67 10-05-2016 07:12 PM

It is .htaccess in your public_html directory.

public_html/.htaccess

Lynne 10-05-2016 07:35 PM

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 10-06-2016 07:36 AM

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 [DATE]1475746666[/DATE] at [TIME]1475746666[/TIME] ---------------

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 [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?

Seven Skins 10-06-2016 11:12 AM

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

Lynne 10-06-2016 07:22 PM

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


All times are GMT. The time now is 06:39 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.01047 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete