Welcome Guest, Not a member yet? Register   Sign In
Session problem
#5

[eluser]überfuzz[/eluser]
[quote author="shinokada" date="1257445854"]There is nothing in Session array at the beginning.
Is it a problem? If so, how can I solve it?

Thanks for your reply.[/quote]
Well if you're going to use it, it is a problem.

I didn't look throw your code, but from the top of my head, I'd consider two things.
Code:
if(isset($_SESSION['some_key'])){ /* do stuff */ } else {/* don't do stuff */}
//or
if(!isset($_SESSION['some_key'])) {$_SESSION['some_key'] = 'default';}


Messages In This Thread
Session problem - by El Forum - 11-05-2009, 12:44 AM
Session problem - by El Forum - 11-05-2009, 03:56 AM
Session problem - by El Forum - 11-05-2009, 06:30 AM
Session problem - by El Forum - 11-05-2009, 06:33 AM
Session problem - by El Forum - 11-05-2009, 07:51 AM
Session problem - by El Forum - 11-05-2009, 08:48 AM
Session problem - by El Forum - 11-05-2009, 09:23 AM
Session problem - by El Forum - 11-05-2009, 10:47 AM
Session problem - by El Forum - 11-05-2009, 10:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB