Dear developers and users of great CakePHP! I'm new in this community, I've started to learn Cake about 1 week ago and very excited by this product :)
I'm trying to make one optimization trick and have questions about it. I've modified my session table (in mysql 5.0.xx) like this: CREATE TABLE cake_sessions ( id varchar(255) NOT NULL default '', data varchar(255) default '', expires int(11) default NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; Note ENGINE=MEMORY, and 'data' field now not TEXT but VARCHAR (because memory tables don't support TEXT or BLOB). Now the questions: 1) Do you think it's safe for users to store their sessions in memory? In my opinion it's OK for small or medium number of visits. Now my sample app works OK with 5 people using it :) and length of session's 'data' as I see in log never been above 237 bytes. 2) Where I can patch a Cake (or maybe my app) to throw an error if session's 'data' is bigger than 255 bytes? Because mysql just truncates the field without a warning :( 3) If you're sure that 255 bytes isn't enough for session storing than how much bytes (according to your opinion) must take the 'data' field? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
