Announcement

Collapse
No announcement yet.

Staying Logged In...WWW or Not

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Staying Logged In...WWW or Not

    Hello. I have been trying to track down this issue for a while now, and I think I have found the problem.

    My users (and even myself at times) are having problems staying logged in to my forums (http://www.bondmovies.com/board/) - even when having the Remember Me? checkbox checked.

    Here is what I have found to be the problem:

    When you go to my message board and log in at the URL http://www.bondmovies.com/board/ , you stay logged in, can view threads, stay logged in, etc. etc.

    However, if you delete the www. from the URL, http://bondmovies.com/board/ , you will magically be shown as logged out. Going back to the original URL, you still show up as logged in....

    I have some mod rewrite for my site...should I post that to find a solution?

    Or does anyone know a mod rewrite command to fix this?

    Thanks!!!
    [email protected]
    BondMovies.com - "Nobody Does It Better."

  • #2
    That is correct behavior. As far as cookies are concerned www.mysite.com and mysite.com are two separate domains. I recommend sticking to one or the other.

    You can also try setting the cookies domain in the Admin CP to:

    .mysite.com

    Note the leading period.

    Admin CP -> vBulletin Options -> Cookies and HTTP Header Option -> Cookie Domain
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment


    • #3
      Thanks for the quick response!

      I tried the option you gave to no avail.

      The same cannot be replicated on vb.com's message board...If I log in at http://vbulletin.com/forum , I can type in the www and it still says I am logged in.

      What gives?
      [email protected]
      BondMovies.com - "Nobody Does It Better."

      Comment


      • #4
        Then either a modification you installed is causing this or it's something on your server.

        As for this site. we automatically redirect to the 'www' domain.
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment


        • #5
          Originally posted by Steve Machol View Post
          Then either a modification you installed is causing this or it's something on your server.

          As for this site. we automatically redirect to the 'www' domain.
          Could it be a faulty mod_rewrite command?

          EDIT: Found the correct mod_rewrite command...I love it!

          Here it is! (redirects all traffic from domain.com to www.domain.com seamlessy!)

          Create a .htaccess file with the below code, it will ensure that all requests coming in to domain.com will get redirected to www.domain.com
          The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

          Options +FollowSymlinks
          RewriteEngine on
          rewritecond %{http_host} ^domain.com [nc]
          rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]

          Please REPLACE domain.com and www.domain.com with your actual domain name.

          Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.
          Courtesy: http://www.webconfs.com/how-to-redirect-a-webpage.php
          Last edited by thuffner; Wed 6th Aug '08, 9:14pm.
          [email protected]
          BondMovies.com - "Nobody Does It Better."

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          X