|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-03-18 08:38 UTC] audwox at chol dot com
[2003-03-18 11:09 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Fri Jan 02 01:00:02 2026 UTC |
First, I'm sorry my poor english. I'm try below code... <? $req = $_REQUEST; $q[email] = strtolower($req[email]); $q[pwd] = $req[pwd]; $q[name] = $req[name]; $q[group] = $req[group]; $q[server] = $req[server]; $q[init] = $req[init]; session_start(); $sess_email = $q[email]; $sess_name = $q[name]; $sess_permission = 1; $sess_lastaccesstime = $now; session_register("sess_email"); session_register("sess_name"); session_register("sess_permission"); session_register("sess_lastaccesstime"); $isLoginSuccess = true; print "<xmp>"; var_dump($q); print "</xmp>"; ?> And this is right result: array(6) { ["email"]=> string(19) "spamadmin@snu.ac.kr" ["pwd"]=> NULL ["name"]=> NULL ["group"]=> NULL ["server"]=> NULL ["init"]=> NULL } But, Sometimes it gives to me wrong result: array(6) { ["email"]=> &string(19) "spamadmin@snu.ac.kr" ["pwd"]=> &bool(true) ["name"]=> &bool(true) ["group"]=> &bool(true) ["server"]=> &bool(true) ["init"]=> &bool(true) } If I first access this page with web browser or after delete session information file in /tmp/sess*, php give to me wrong result. But use var_dump() before session working, it was show right result. Thank you.