Welcome Guest, Not a member yet? Register   Sign In
How to check session variable is empty ?
#4

[eluser]affix[/eluser]
bigtony's Method is correct

However I usually do

Code:
if(isset($this->session->userdata('my_var'))
{
   //DO SOMETHING
}
else
{
   //DO SOMETHING ELSE
}

Both methods are correct it just depends on
1. Your personal Oppinion
2. What you will be doing


Messages In This Thread
How to check session variable is empty ? - by El Forum - 09-29-2009, 01:09 AM
How to check session variable is empty ? - by El Forum - 09-29-2009, 01:40 AM
How to check session variable is empty ? - by El Forum - 09-29-2009, 01:57 AM
How to check session variable is empty ? - by El Forum - 09-29-2009, 01:59 AM
How to check session variable is empty ? - by El Forum - 09-29-2009, 02:46 AM
How to check session variable is empty ? - by El Forum - 09-29-2009, 02:52 AM
How to check session variable is empty ? - by El Forum - 09-29-2009, 02:59 AM
How to check session variable is empty ? - by El Forum - 09-29-2009, 03:12 AM
How to check session variable is empty ? - by El Forum - 09-29-2009, 03:15 AM
How to check session variable is empty ? - by El Forum - 09-29-2009, 03:28 AM
How to check session variable is empty ? - by El Forum - 09-29-2009, 03:32 AM
How to check session variable is empty ? - by El Forum - 09-29-2009, 03:41 AM
How to check session variable is empty ? - by El Forum - 05-03-2012, 08:16 AM
How to check session variable is empty ? - by El Forum - 05-03-2012, 10:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB