Welcome Guest, Not a member yet? Register   Sign In
Problems with session surprised?
#3

[eluser]opterons[/eluser]
Thanks for the help, it worked out with your guidance.

Technical notes:
Code:
$config['sess_probability']     = 25; //must be a percentage 0 - 100 makes clearing the session more probable
I added this line of code to the session section so now i can configure how often i want ci to check that table for garbage then clear it.

Then i changed this line of code in root>system>libraries>session.php->function sess_gc()
from:
Code:
if ((rand() % 100) < $this->gc_probability)//line roughly 389
to:
Code:
if ((rand() % $this->CI->config->item('sess_probability')) < $this->gc_probability)

Now this option is configurable via system>application>config>config.php Smile.

-Bryan


Messages In This Thread
Problems with session surprised? - by El Forum - 12-21-2007, 07:02 PM
Problems with session surprised? - by El Forum - 12-21-2007, 09:02 PM
Problems with session surprised? - by El Forum - 12-21-2007, 09:38 PM
Problems with session surprised? - by El Forum - 11-19-2009, 10:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB