Ticket #177 (fixed bug)
1.4.2 sets a bad cookie after registering.
- Created: 2010-11-05 00:45:02
- Reported by: Sosukodo
- Assigned to: Reines
- Milestone: 1.4.3
- Component: usability
- Priority: high
Some of you may have found that the auto-login doesn't happen after registering. This is because on line 160 in register.php:
$new_uid = $db->insert_id();
seems to return an integer in this case.
Comparing 2 cookies:
auto-login after registering:
a:3:{i:1;i:14;i:1;s:32:"8790837b009a5a9dc23ff9f1fb376edf";i:2;i:1288918036;}
normal-login:
a:3:{i:0;s:2:"14";i:1;s:32:"8790837b009a5a9dc23ff9f1fb376edf";i:2;i:1288918147;}
The UID on the invalid (auto-login failure) is an integer while the latter is a string.
Changing line 160 in register.php to:
$new_uid = "".$db->insert_id();
Seems to solve the problem and the auto-login after registration succeeds.
History
Reines 2010-11-08 15:57:08

- Milestone set to 1.4.3.
- Owner set to Reines.
- Priority changed from normal to high.
Thanks for the report, I'll sort this soon and it will be fixed in 1.4.3.
Reines 2010-11-08 16:55:33

- Status changed from open to fixed.
Should now be fixed: https://github.com/fluxbb/fluxbb/commit … 6526829167
Thanks