vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Logging out - if I remove www (https://vborg.vbsupport.ru/showthread.php?t=202984)

Suri.CMS 01-24-2009 08:03 PM

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

Dismounted 01-25-2009 03:52 AM

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).

Suri.CMS 01-25-2009 04:09 AM

Quote:

Originally Posted by Dismounted (Post 1723923)
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.

Neutral Singh 01-25-2009 04:49 AM

I use this in my .htaccess

Quote:

Code:

RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]



blind-eddie 01-25-2009 05:20 AM

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.

freewilley 01-25-2009 09:09 AM

Quote:

Originally Posted by blind-eddie (Post 1723982)
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.

Dismounted 01-25-2009 11:57 AM

Quote:

Originally Posted by Suri.CMS (Post 1723940)
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 (Post 1723940)
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 (Post 1724070)
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.

Suri.CMS 01-25-2009 03:21 PM

Quote:

Originally Posted by Dismounted (Post 1724161)
You may need to log out and log back in for it to take effect.

I did that. It did not work.

Dismounted 01-26-2009 04:52 AM

Have you tried the mod_rewrite rule solution?

Suri.CMS 01-29-2009 03:24 PM

Quote:

Originally Posted by Dismounted (Post 1724900)
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]



All times are GMT. The time now is 01:39 PM.

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.01192 seconds
  • Memory Usage 1,737KB
  • 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
  • (8)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