Fixing inefficient session handling |
[eluser]Yorick Peterse[/eluser]
[quote author="Gintaras Valatka" date="1244924527"][quote author="Yorick Peterse" date="1244909023"]And why wouldn't we want it to behave that way ? Why isn't $this->session->set_userdata(‘item’, ‘value’) supposed to write the database ? It seems that you don't understand the idea behind the session class.[/quote] Maybe this will convince you: example of CI session behavior from my other post And this is just using one call $this->session->set_flashdata('item', 'value'); What if you add 10 session vars ? What if you store session data in an encrypted cookie on the client side ? How fast can you go ? ![]() I don't store session data in the database so it isn't a problem for me. Besides, the performance increase when using a cookie with your modified session class will most likely be very small. |
Messages In This Thread |
Fixing inefficient session handling - by El Forum - 06-12-2009, 04:44 PM
Fixing inefficient session handling - by El Forum - 06-13-2009, 05:03 AM
Fixing inefficient session handling - by El Forum - 06-13-2009, 05:20 AM
Fixing inefficient session handling - by El Forum - 06-13-2009, 09:22 AM
Fixing inefficient session handling - by El Forum - 06-13-2009, 01:47 PM
Fixing inefficient session handling - by El Forum - 06-13-2009, 01:50 PM
Fixing inefficient session handling - by El Forum - 06-14-2009, 07:27 PM
Fixing inefficient session handling - by El Forum - 06-14-2009, 07:55 PM
|