RE: [PHP] Set session by hand

From: Date: Tue, 29 Apr 2003 11:31:47 +0000
Subject: RE: [PHP] Set session by hand
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145626@lists.php.net to get a copy of this message
Are you saying that you access the webserver from one client and it works and then from a different client and it doesn't? Or Are you saying you are trying to pass the session id from one server to another? -----Original Message----- From: Justin French [mailto:justin@indent.com.au] Sent: Tuesday, 29 April 2003 9:19 AM To: Alexander BOYER; php-general@lists.php.net Subject: Re: [PHP] Set session by hand Ok, you're pretty confused here. Please send us a step-by-step list as to what you're trying to achieve. Justin on 29/04/03 2:12 AM, Alexander BOYER (alex_boyer@hotmail.com) wrote: > Hello, > > CONTEXT: > I have two scripts : init.php, show.php > * init.php sets $_SESSION['test'] = 'youpi' and prints session_id() > * show.php starts session with session_id($_GET['my_sess_id']) and shows > session variables echo $_SESSION['test']; > > PROBLEM: > When i request init.php, then i request show.php?my_sess_id=XXXXXX, where > XXXXX is what init.php has printed, it works. > When i request init.php, then i request show.php?my_sess_id=XXXXXX FROM > ANOTHER IP ADDRESS, the session is not loaded !! > > Is it normal ? Anyone have an idea to solve my problem ? > > SOURCES: > init.php > <?php > > session_start(); > $_SESSION['test'] = 'youpi'; > echo session_id(); > ?> > > show.php > <?php > session_id($_GET['my_session_id']); > session_start(); > echo $_SESSION['test']; //print nothing > echo session_id() ; //print $_GET['my_session_id'] > ?> > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#145626) next »