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

[eluser]bigtony[/eluser]
[quote author="wiredesignz" date="1254233737"]You are both incorrect because you cannot run the isset() function on a function no matter what.[/quote]
Thanks, but I had already corrected my previous oversight (post #7). My point abut isset is correct though, as indicated by the following:
Code:
$x = FALSE;
if (isset($x)):
    print 'set';
else:
    print('not set');
endif;
The above will display 'set' even though $x is false, which is what you get from userdata if the session variable is not found.


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