FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Question about cookies.inc.t
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Question about cookies.inc.t [message #185533] Wed, 09 April 2014 18:58 Go to previous message
eclipsewebmaster is currently offline  eclipsewebmaster   
Messages: 46
Registered: November 2009
Location: Ottawa, Ontario, Canada
Karma:
Member
cookies.inc.t has this code near line 49:

   /* $p > 8 https:// or http:// */
   if (($p = strpos($_SERVER['HTTP_REFERER'], $host)) === false || $p > 8) {
       $q_opt .= ' AND s.user_id > 2000000000 ';
   }


I'm trying to understand what that is for. Our authentication process happens on a separate hostname (dev.eclipse.org) than the forum itself (www.eclipse.org). After the authentication process, we redirect the browser to fudforum's index.php/l/ so that fud can load up the session, but it never does since p > 8. Hitting fudforum's "Login" link a second time works, since HTTP_REFERER and $host are now the same machine.

I'm going to remove that snippet of code to fix my own authentication process, but I'm just wondering why you'd want to tack on a condition (AND s.user_id > 2000000000) which is likely never met.

[Updated on: Wed, 09 April 2014 19:11]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Can I stop subscription notification?
Next Topic: Lightbox plugin help getting started
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 11:29:51 GMT 2024

Total time taken to generate the page: 0.04542 seconds