|
Well, the obvious thing is... don't store into the session is your POST has no values, just like you wouldn't try to send an email from a form if the form had no data submitted. If you want your session variable not to contain something blank, if $_POST isn't set, don't store new values.
The sessions are working fine, but you're not working with them properly.
|