RE: [PHP-WIN] Session Vars

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




I used the code below with $_SESSION[] and i have been able to get the username and password to save to the session file but i get and error of


Notice: Undefined variable: PHPSESSID in c:\apache\htdocs\editor\index.php on line 4

can anyone tell me what this means

I am new to php and have only used sessions once before

Dean "The Insane Guy" Hayes
Mystical Web Designs
http://www.mystical-sector.com

<-- I design and i redesign but still i never designed true beauty like you -->





From: "Disko_kex" <disko_kex@swedish-mushroom.com>
To: "'Dean Hayes'" <wizard_guy@hotmail.com>,<php-windows@lists.php.net>
Subject: RE: [PHP-WIN] Session Vars
Date: Mon, 25 Aug 2003 12:33:50 +0200

Try this instead:

Session_start();
	$_SESSION["id"] = $PHPSESSID;
	$_SESSION["user_name"] = $form_username;
	$_SESSION["user_pass"] = $form_pass;


print "$_SESSION[id], $_SESSION[user_name], $_SESSION[user_pass]";


// jocke


-----Original Message----- From: Dean Hayes [mailto:wizard_guy@hotmail.com] Sent: den 25 augusti 2003 09:23 To: php-windows@lists.php.net Subject: [PHP-WIN] Session Vars


Hey,


I have a script that needs to save the session id and username but when
i
use the following code it will not save anything to the session file,
can
anyone help out here? The same script use to work when i ran it under
Win 98
and Mandrake Linux but since i have installed WinXP it stops working

<?Php

	session_start();
		session_register('id');
			$id = $PHPSESSID;

		session_register('user_username');
			$user_username = $form_username;

		session_register('user_pass');
			$user_pass = $form_pass;

?>

Thanks

Dean "The Insane Guy" Hayes
Mystical Web Designs
http://www.mystical-sector.com

<-- I design and i redesign but still i never designed true beauty like
you
-->

_________________________________________________________________
ninemsn Extra Storage comes with McAfee Virus Scanning - to keep your
Hotmail account and PC safe. Click here  http://join.msn.com/

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

_________________________________________________________________
ninemsn Extra Storage comes with McAfee Virus Scanning - to keep your Hotmail account and PC safe. Click here http://join.msn.com/


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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux