Welcome Guest, Not a member yet? Register   Sign In
Fixing inefficient session handling
#8

[eluser]Xeoncross[/eluser]
Actually, the reason that this probably isn't implemented is that some pages end/redirect before the script finishes. i.e. you will have some PHP programmers complain when the session isn't saved.

However, this is easily fixed by adding a force save method to the session lib right before a redirect or error.

Code:
if(something) {
    $this->session->save();
    redirect();
}

//... continue code


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



Theme © iAndrew 2016 - Forum software by © MyBB