#4452 Can't log in to story pages

Slashdot
open
nobody
Login (212)
5
2010-01-04
2010-01-04
Julie Hill
No

Using Firefox 3.5.6, Vista 32 home premium SP2. I'm logged in on the main site (http://slashdot.org), but whenever I open a story up - whether in a new tab or the same window - I'm logged out. Using the login link at the upper right takes me to my profile page - click through to the home page, where I'm still logged in - try going back to the story - logged out again. Lather, rinse, repeat.

No issues with this when using Chrome.

Discussion

  • I am experiencing the same problem with Firefox 3.5.8.

    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8

     
  • Same with 3.6.

     
  • Ray Harris
    Ray Harris
    2010-03-30

    I've got the same problem in Firefox 3.6.2 on Vista 32-bit.

    Looking through the cookies, it seems that the "user" cookie has the host "slashdot.org" instead of the usual ".slashdot.org".

    When you're on the "http://slashdot.org" page, your "user" cookie is sent to the server and you're recognized as a user.

    When you go to a comment page at "http://science.slashdot.org" the missing leading dot in the user cookie host prevents that cookie from being sent to the server and your login isn't recognized and you can't post as yourself.

    I imagine this would be a one character fix in the code, but I'm not a Perl programmer. Hopefully this will help someone who is put up a patch for the bug.

     
  • Ray Harris
    Ray Harris
    2010-03-30

    I just verified that my assumption in my comment below was correct. Here's how I verified it.

    1) Logged in to slashdot.org.

    2) Checked comment pages on science.slashdot.org and hardware.slashdot.org and I was not listed as logged in on those pages.

    3) Viewed the slashdot.org cookies and copied the content of the user cookie to the clipboard.

    4) Went to a comment page on science.slashdot.org.

    5) In the address bar typed this:
    javascript:void(document.cookie=prompt('New cookie', ''));

    6) Entered this in the prompt:
    user=[user cookie content];domain=.slashdot.org

    7) Reloaded the comment page and I was now logged in.

    8) Went to a comment page on hardware.slashdot.org and I was logged in there as well.

    Hope this helps.

     
  • Chris Nandor
    Chris Nandor
    2010-03-30

    Try removing your cookies and logging in all over again.

     
  • DarwinSurvivor
    DarwinSurvivor
    2010-04-03

    Getting the same behaviour in Firefox 3.6.2 on arch linux.

     
  • DarwinSurvivor
    DarwinSurvivor
    2010-04-03

    Hmm, logging out at the home page, then logging back in seems to have fixed the problem for me (at least for now). Can someone else verfiy this?