session destroy or unset |
[eluser]ranjitbd[/eluser]
// when i logout from my site and want to unset all sessions which statement i will use? 1. $this->session->sess_destroy(); or 2. session_unset();
[eluser]Dam1an[/eluser]
Well you could read up on each function, and see which one applies to you The fact you just fired of 5 short questions in the space of 5 minutes tell me you're asking questions without even making an attempt to resolve them yourself!
[eluser]ranjitbd[/eluser]
yeah sir both r working..but i am asking the better option...which is less time consuming and memory consuming
[eluser]Dam1an[/eluser]
Well, they're not the same, one is a PHP function, and the other is a CI function So if you're using CI session, use the CI method, and if you're using PHP sessions, use the PHP method And if you really want to find out about the performance differance, why not run some benchamrks? There is a benchmark class you know |
Welcome Guest, Not a member yet? Register Sign In |