I am using PHP5, MySQL5.0, IIS Server, Dreamweaver. I had done a login page, checklogin page and a result page. The result page says hello to the user who log in.
I managed to captured the username and put it into $_SESSION[‘user’] and I managed to print the username out on that page. However, after redirecting from checklogin page to test page (using header), the $_SESSION[‘user’] seems to be empty.
I already made sure that i placed session_start() on top of all the codes in checklogin page and result page.
Can anyone tell me how come the session ahs become empty after redirecting?