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

[eluser]bigtony[/eluser]
Sorry, need slight adjustment...
Code:
$my_variable = $this->session->userdata('my_variable');
if (empty($my_variable)):
    echo 'The my_session variable is empty (or not set).';
endif;


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