When a user logs in via a PL cookie, _persistent_login_check() finishes with drupal_goto(substr(drupal_get_destination(), 12)); to re-load the current page as the logged-in user.

On jaspan.com, the front page is 'node'. If I use wget to via jaspan.com with a valid PL cookie, I see a redirect to /node and then a redirect to /. I should be able to short-circuit that and redirect directly to /.

Also, the first redirect to /node sets *two* different PHPSESSID cookies when only one should be needed (unless I can't prevent the anonymous session from being created before the user is logged in). Then, the second redirect to / sets *another* different PHPSESSID; for this, I have no idea why.

Here's the trace:

% wget -S --no-cookie --header 'Cookie: PERSISTENT_LOGIN__=2%3Ab714cccf4dd507221faed0e51984afac%3A59683b8ae8f959eb526175e14a66230c' -O - http://jaspan.com
--10:41:02--  http://jaspan.com/
           => `-'
Resolving jaspan.com... 216.146.223.86
Connecting to jaspan.com|216.146.223.86|:80... connected.
HTTP request sent, awaiting response... 
  HTTP/1.1 302 Found
  Date: Fri, 09 Feb 2007 15:41:08 GMT
  Server: Apache/1.3.37
  Cache-Control: max-age=1209600
  Expires: Fri, 23 Feb 2007 15:41:08 GMT
  X-Powered-By: PHP/4.3.10
  Set-Cookie: PHPSESSID=1dc4b259be3c0cca9c0b9a31360dc796; path=/
  Set-Cookie: PERSISTENT_LOGIN__=2%3Ab714cccf4dd507221faed0e51984afac%3A87507187e83dc2d9b48c30ce56269ab8; expires=Tue, 19-Jan-38 03:14:07 GMT; path=/
  Set-Cookie: PHPSESSID=3e6b12c788eacc5c72f0a63ba8416f92; path=/
  Location: http://jaspan.com/node
  Connection: close
  Content-Type: text/html; charset=utf-8
Location: http://jaspan.com/node [following]
--10:41:02--  http://jaspan.com/node
           => `-'
Connecting to jaspan.com|216.146.223.86|:80... connected.
HTTP request sent, awaiting response... 
  HTTP/1.1 302 Found
  Date: Fri, 09 Feb 2007 15:41:08 GMT
  Server: Apache/1.3.37
  Cache-Control: no-store, no-cache, must-revalidate
  Expires: Sun, 19 Nov 1978 05:00:00 GMT
  X-Powered-By: PHP/4.3.10
  Set-Cookie: PHPSESSID=d9620be2cb854589cf77505f28f4fa4c; path=/
  Last-Modified: Fri, 09 Feb 2007 15:41:08 GMT
  Cache-Control: post-check=0, pre-check=0
  Location: http://jaspan.com/
  Connection: close
  Content-Type: text/html; charset=utf-8
Location: http://jaspan.com/ [following]
--10:41:03--  http://jaspan.com/
           => `-'
Connecting to jaspan.com|216.146.223.86|:80... connected.
HTTP request sent, awaiting response... 
  HTTP/1.1 200 OK
  Date: Fri, 09 Feb 2007 15:41:08 GMT
  Server: Apache/1.3.37
  Cache-Control: must-revalidate
  Expires: Sun, 19 Nov 1978 05:00:00 GMT
  X-Powered-By: PHP/4.3.10
  Set-Cookie: PHPSESSID=324a85658f97796b44ab1a86579ec012; path=/
  Last-Modified: Thu, 08 Feb 2007 22:42:17 GMT
  ETag: "eb197e564e9ba2be4f787ae8e5aebdda"
  Connection: close
  Content-Type: text/html; charset=utf-8
Length: unspecified [text/html]

<HTML was here>

Comments

bjaspan’s picture

Assigned: Unassigned » bjaspan
Priority: Normal » Minor
bjaspan’s picture

Status: Active » Closed (won't fix)

don't care