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

Reply
 
Thread Tools Display Modes
  #1  
Old 01-24-2009, 08:03 PM
Suri.CMS Suri.CMS is offline
 
Join Date: Apr 2008
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Logging out - if I remove www

Hi all,

If I login with my user name & password at my vB forum - http://www.testwebsite.com/forum then it's fine.

Then if I remove www from above URL - http://testwebsite.com/forum , the login does not stay. It logs out automatically. I need to relogin.

Did I mess up any settings (like cookies) ?
Reply With Quote
  #2  
Old 01-25-2009, 03:52 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There have been plenty of threads on this over the times. Just redirect all traffic from one to the other. Search "yes-www" or "no-www" on Google. The cookies will stick on the domain you entered as the forum URL. Alternatively, you can set the cookie domain to .domain.com (not 100% sure if this will work in all cases).
Reply With Quote
  #3  
Old 01-25-2009, 04:09 AM
Suri.CMS Suri.CMS is offline
 
Join Date: Apr 2008
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
Alternatively, you can set the cookie domain to .domain.com (not 100% sure if this will work in all cases).
I tried it. Did not work.

I am trying the htaccess rule to redirect traffic to www.
Reply With Quote
  #4  
Old 01-25-2009, 04:49 AM
Neutral Singh's Avatar
Neutral Singh Neutral Singh is offline
 
Join Date: Sep 2004
Location: Sikh Philosophy Network
Posts: 545
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I use this in my .htaccess

Quote:
Code:
RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]
Reply With Quote
  #5  
Old 01-25-2009, 05:20 AM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have read about this many times here as well...I removed www from my site url & forum url via admincp, I also have many custom links in my navbar & removed all www from each link that were for my site.

I then informed my members to edit their short cut to the site from their desk top & remove www from it....No problems from that point.
Reply With Quote
  #6  
Old 01-25-2009, 09:09 AM
freewilley's Avatar
freewilley freewilley is offline
 
Join Date: Jan 2009
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by blind-eddie View Post
I have read about this many times here as well...I removed www from my site url & forum url via admincp, I also have many custom links in my navbar & removed all www from each link that were for my site.

I then informed my members to edit their short cut to the site from their desk top & remove www from it....No problems from that point.
newer releases from vbulletin should consider this and need to fix this.. I think its a major bug on the script.
Reply With Quote
  #7  
Old 01-25-2009, 11:57 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Suri.CMS View Post
I tried it. Did not work.
You may need to log out and log back in for it to take effect.
Quote:
Originally Posted by Suri.CMS View Post
I am trying the htaccess rule to redirect traffic to www.
I can almost guarantee you that this will work.
Quote:
Originally Posted by freewilley View Post
newer releases from vbulletin should consider this and need to fix this.. I think its a major bug on the script.
It is not a bug in vBulletin. It is part of the security of cookies. Just redirect all traffic to one or the other and the "problem" is gone.
Reply With Quote
  #8  
Old 01-25-2009, 03:21 PM
Suri.CMS Suri.CMS is offline
 
Join Date: Apr 2008
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
You may need to log out and log back in for it to take effect.
I did that. It did not work.
Reply With Quote
  #9  
Old 01-26-2009, 04:52 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you tried the mod_rewrite rule solution?
Reply With Quote
  #10  
Old 01-29-2009, 03:24 PM
Suri.CMS Suri.CMS is offline
 
Join Date: Apr 2008
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
Have you tried the mod_rewrite rule solution?
Problem Solved with REDIRECT.

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [L,R]
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 06:48 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05967 seconds
  • Memory Usage 2,260KB
  • Queries Executed 11 (?)
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
  • (8)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
  • (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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete