Probably a long shot, but I've had that issue once before.
Up vote 0 down vote favorite share g+ share fb share tw.
If (isexistinguser($_SESSION'uname', $_SESSION'pwd', true)! = 1) { // NO? Gtfo punset('session',array('uname','pwd')); return false; } return true; } // user isn't active D: else { return false; } } EDIT: I've added new functions prefixed with p that handle $_SESSION and $_COOKIE values - refer to functions.
Php line 228. This used to work, but for some reason not any longer. Accessing every part of the script is through index.
Php in the root folder, which first off calls session_start(). I've been placing var_dump($_SESSION) right below session_start() in index. Php and I've noticed it shows Array( ), but putting die(var_dump($_SESSION)) after the login script sets the session values shows that the $_SESSION values have been set.
Yet. Every page load, $_SESSION blanks. Why is this the case?
I've tried to check whether the session_id() on the login script and in index. Php are the same, and they are. Logging in does report back that it has successfully logged me in.
UPDATE: In template. Php line 131 - function outputAll() - I have put print_r($_SESSION); right before echo $this->build(); and after it; on the login page when it has received the $_POST data, it shows the expected $_SESSION above the page (i.e. The print_r above the call to build()), and "Array ( )" below the page.
So somewhere in build() the session must have had something done to it. But... this is build()... function build() { if ($this->disabled) { return $this->content; } else { global $footer; ob_start(); $location = $this->location; include($this->location'theme_nr'. '/overall.
Php'); return ob_get_clean(); } } UPDATE: Narrowed it down to line 32 of the aforementioned overall.php. Print_r($_SESSION); shows expected output before it only. If (isloggedin()) { echo 'Logged in as: '.
$_SESSION'uname'. ' (admin | logout)'; } else { echo 'Not logged in (login | register)'; } php session link|improve this question edited Dec 6 '09 at 8:05 asked Dec 4 '09 at 8:19zhwang1,183527 98% accept rate.
If cookie vars are set but empty, session vars will get overridden. – JP. Dec 4 '09 at 17:57 I put echo 'hi'; after the line relating to cookies, but I haven't seen an appearance of hi.
– zhwang Dec 4 '09 at 22:50 1 So you're storing an unsalted hash of the password in a cookie? Rainbow tables anyone? – BalusC Dec 5 '09 at 4:15.
It's a bunch of . Tmp files and some files prefixed with session..? – zhwang Dec 4 '09 at 23:11 In the location defined in session. Save_path?
Are new ones created when you make a new session? Is anything in the file created if so? Just a wild guess, but probably a good thing to check.
– pssdbt Dec 5 '09 at 0:33 Should have probably mentioned that you'll find session. Save_path in your php. Ini, just in case... – pssdbt Dec 5 '09 at 0:34.
Surprisingly, I have been led around a long hunt and I have been led back into a loop to find that this is the cause. If (isexistinguser($_SESSION'uname', $_SESSION'pwd', true)! = 1) { // NO?
Gtfo punset('session',array('uname','pwd')); return false; } The! = on the first line of the snippet should have been a ==... *facepalm.
Sweet. Glad you found the solution (or problem, rather) - easy to overlook these things :D – pssdbt Dec 10 '09 at 20:50.
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.