Re: Require Session example

From: Date: Fri, 17 Oct 2003 00:16:44 +0000
Subject: Re: Require Session example
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-21789@lists.php.net to get a copy of this message
Hi Rinku This is is example to use for session : ---------------------------------------------------------------------------- -------------------------------------------- <? //first.php session_start(); // starting session // session variables must be global global $sessName; $sessName="Rinku"; session_register("sessName"); ?> Now you can acess this session variable in another php file as follows : <? //second.php session_start(); // starting session echo "Name from the session variable is ".$sessName; // This should display Rinku ?> Thanks and Regards Sachin Ramdasi Solversa Technologies Pvt. Ltd. Pune - India Office: (+91) 020 5881741 Cell : (+91) 9822276433 "Rinku Shivnani" <rinku@banas.guj.nic.in> wrote in message news:3F8EA278.16580.B15932@localhost... > Dear all, > > I need session example. Can any of you send me some session > example in php pls. I wd be thankful to you. > > > Regards, > Rinku

« previous php.windows (#21789) next »