Question Locked

Php Sesstions

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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.

2 replies

This discussion is closed to new replies.