Ticket #739 (closed defect: fixed)
sessionid column too small for use with sha1
| Reported by: | VokinLoksar | Owned by: | BrianKoontz |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.3.1 |
| Component: | database | Version: | 1.1.6.4 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
My PHP configuration is using SHA1 algorithm for generating session ids. The problem is that sessionid column in the sessions table is configured for use with MD5 (32 characters versus 40). Ids that are inserted into the column are truncated, and all future attempts to select those ids fail.
Two possible solutions - either check the session id length during installation and set the column width accordingly, or use a bigger value by default (at least 40 characters).
Change History
Note: See
TracTickets for help on using
tickets.