You are overwriting the $_SESSION'login' every request, because you're assigning the $_POST value without checking if it is really set if(isset($_POST'_check_submit')) { $_SESSION'login' = $_POST'_check_submit'; }.
You are overwriting the $_SESSION'login' every request, because you're assigning the $_POST value without checking if it is really set. If(isset($_POST'_check_submit')) { $_SESSION'login' = $_POST'_check_submit'; }.
– Latze Sep 15 '10 at 9:04 Uhm, because you require username and password to be POST'ed every single request. You should rethink your authentication system. – halfdan Sep 15 '10 at 9:07 Okay thank you.
– Latze Sep 15 '10 at 9:09.
I'm not 100% sure because there's no other code given, but you seem to be missing a call to session_start() that's required to start or load the session. Sadly $_SESSION isn't magical enough to start the session on your behalf. Without this call, $_SESSION will be empty at the beginning of each script and will never be initialised to the session data.
Having said that, it is possible to configure PHP to start sessions automatically for every script, using the session. Auto_start php. Ini directive, assuming you have enough control to change this.
Also, halfdan has a very good point, which I missed! – Dave Sep 15 '10 at 8:57 The session_start() is in the first sample :) don't know why, moving it... – Latze Sep 15 '10 at 9:04.
You are overwriting the $_SESSION'login' every request, because you're assigning the $_POST value without checking if it is really set.
I'm not 100% sure because there's no other code given, but you seem to be missing a call to session_start() that's required to start or load the session. Sadly $_SESSION isn't magical enough to start the session on your behalf. Without this call, $_SESSION will be empty at the beginning of each script and will never be initialised to the session data.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.