php-windows Digest 16 Oct 2003 11:54:31 -0000 Issue 1958

Topics (messages 21783 through 21789):

Require Session example
        21783 by: Rinku Shivnani
        21784 by: karthikeyan
        21785 by: Mac Intyre, Steven
        21786 by: Socheat
        21787 by: Rinku Shivnani
        21788 by: Rinku Shivnani
        21789 by: Sachin

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
//start the session - in all the pages
session_start();

//store it like that
$_SESSION["name"]= "Rinku"; 

//use it anywher like this
echo $_SESSION["name"];


----- Original Message ----- 
From: "Rinku Shivnani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 16, 2003 1:51 PM
Subject: [PHP-WIN] Require Session example


> 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
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

--- End Message ---
--- Begin Message ---
what do you mean session example ?

http://www.phpfreaks.com/tutorials/41/0.php

Thats how i learnt sessions.

Steven 

On 16 Oct 2003 at 13:51, Rinku Shivnani wrote:

> 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
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
by the way , on the following example , you don't use session_register ? 
when they use session_register ? 
and could you tell on how to use Kill session



-----Original Message-----
From: karthikeyan [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 1:29 AM
To: Rinku Shivnani; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Require Session example


//start the session - in all the pages
session_start();

//store it like that
$_SESSION["name"]= "Rinku"; 

//use it anywher like this
echo $_SESSION["name"];


----- Original Message ----- 
From: "Rinku Shivnani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 16, 2003 1:51 PM
Subject: [PHP-WIN] Require Session example


> 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
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Dear all pls give me full detail pls.

Regards,
Rinku

--- End Message ---
--- Begin Message ---
If possible send me some php form example pls.

Regards,
Rinku

--- End Message ---
--- Begin 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" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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

--- End Message ---

Reply via email to