PHP-value problems in the session
Users questions: ? @ Session_start ();$_ SESSION ['gly'] = "assigned to the session"; ** session_id ()=$_ SESSION ['gly']; echo $ _SESSION ['gly' ];? P ahref = "2.php" * a first page is the second page below the content? @ Session_start (); echo $ _SESSION ['gly'] = "Why is it there is no output"; ** in the ASP There is a direct output of this? P ahref = "1.php" * a second page also,? @ Session_start (); echosession_id ();." br; echoSID; ** These two values are output What, how not to assign session can also be output Yeah,? I am a novice. Please answer, the code posted, this section should be like this: echo $ _SESSION ['gly'];** why there is no output as you write it
Experts answer: Approach is the correct one in the page you: session_start ();$_ SESSION ["admin"] = "test"; in the page two: session_start (); echo $ _SESSION ["admin"]; is As will be the value of session_id (), each user opens a web site, the site will automatically assign a sessionid for the user, different, which used to distinguish which session computers.