Can I share Session variables between multiple clients with php Sessions?
问题 what I am trying to find out is, if I can share a Session variable for multiple clients. Like they can use the exactly same Object. The below example will illustrate what I would like to do. client1: start_session(); include('somelcass.php'); //some code... $someobj = new someclass(); $_SESSION['myobject'] = serialize($someobj); $id = sha1("somephrase"); set_session_var_for_other_users_by_id('myobject', $id); client2: start_session(); include('somelcass.php'); $id = sha1("somephrase"); get