Php Sesstions - TechRepublic
Question
January 7, 2009 at 09:35 PM
gayani.edirisinghe

Php Sesstions

by gayani.edirisinghe . Updated 17 years, 6 months ago

In my application I want to pass the values of 1st page to 2nd page. I used sessions for that.
my code is like this
1st page:
session_start();
$_session[‘name’]=”some one”;

2nd page
echo $_session[‘name’];

but here I unable to read the answer from second page. Are there any wrong with me? Please instruct me to correct this.

This discussion is locked

All Comments