Hi,
Welcome to the wild world of programming...
Okay,
session1 and session2, you got me confused here.
Lemme see if I get your drift...you have one PHP page (one.php, let's say) with a session started up and variables and all set. What is the
connection between the second page? There seems to be none...
A session is "played out" in one browser and in a set of logially belonging pages...
In page one you'd have something like this
Quote:
session_start();
$_SESSION['CoolTune'] = 'SesameStreetSong';
|
the next page in the same site can now open/read/access the valiable stored in the session - of that flow/site - as any other page is not part of that particular session, the variables in the session are not accessible.
Quote:
session-start();
$WhatSong = ''; // init the variable
$WhatSong = $_SESSION['CoolTune']; // fill in the data
|
If you need to shuttle data over, consider a database. Cookies are limited by the domain they belong to...
Hope this helped!
Thor