Is there a way to refrence the session variable or set the session
variable using $_SESSION? I like using the $_GET, $_POST, $_SESSION
constructs for consistency.

Matt Babineau
MCWD / CCFD
-----------------------------------------
e: [EMAIL PROTECTED]
p: 603.943.4237
w: http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105


-----Original Message-----
From: Robert Trembath [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 10, 2002 2:12 PM
To: Matt Babineau
Subject: Re: [PHP-WIN] SESSION vars


<?
session_start();
session_register( "foo" );
$foo = "Whatever";
?>

On Wed, 2002-07-10 at 12:56, Matt Babineau wrote:
> I was reading on php.net but it seem unclear to me how to properly set

> a session variable.
>  
> my code looks like this:
>  
> session_start();
> $_SESSION["logged_in"] = "1";
>  
> ----------------------------------
> when I click the link to the next page, and it checks for the 
> logged_in session var it cannot find it. am I setting it improperly? 
> do I need to
> use:
>  
> session_register("logged_in");
>  
> Thanks,
>  
>  
> Matt Babineau
> MCWD / CCFD
> -----------------------------------------
> e:  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
> p: 603.943.4237
> w:  <http://www.criticalcode.com/> http://www.criticalcode.com PO BOX 
> 601 Manchester, NH 03105
>  




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

Reply via email to