tultalk has asked for the wisdom of the Perl Monks concerning the following question:
Hi:
My records in the sessions DB seem strange.id 7032f2c7f5a2c721a483dc75fc29595e a_session $D = {'_SESSION_ID' => '7032f2c7f5a2c721a483dc75fc...
The id field contains the SID while the second field is a mystery to me.
Some record contain names and/or expiration while others are like the one above with partial SID. It has ... following the data which implied more to follow but I cant see or find anymore.
Even the last record posted/updated did not contain the updated information that was put in the $session before flush().
Expiration appears in cookie fine but not in database record.
In the cpan documentation on session table it says two records minimum required. id and a_session, id being 32 characters and a_session a text field of undetermined length. Is that text where all the added/updated params are supposed to be?
Name Type Collation Attributes Null Default Extr +a Action 1 id varchar(32) latin1_swedish_ci No +Change Change Drop Drop Primary Primary Unique Unique Index Index Spatial Spatial More 2 a_session text latin1_swedish_ci No None + Change Change Drop Drop Primary Primary Unique Unique Index Index Spatial Spatial More
My experience with DB requires set field length.
MySQL says BLOB, TEXT L + 2 bytes, where L < 2^16 (64 Kilobytes)
So do you set a size or it just floats?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: MySQL Session database record
by huck (Prior) on Mar 11, 2017 at 03:28 UTC | |
by tultalk (Monk) on Mar 11, 2017 at 04:29 UTC | |
|
Re: MySQL Session database record
by stevieb (Canon) on Mar 11, 2017 at 02:18 UTC | |
by tultalk (Monk) on Mar 11, 2017 at 03:31 UTC | |
by huck (Prior) on Mar 11, 2017 at 04:13 UTC |