Mujahid
The sample implementation is correct and works here in a Linux/Apache
environment.
However, I cannot get the sample to work in a Windows 2000/IIS environment.
Please let us know what environment you are currently running in.
Alistair
-----Original Message-----
From: Mujahid Wazir [mailto:[EMAIL PROTECTED]]
Sent: 17 January 2001 05:36
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Basic Clarification on Sessions(PHP4)
Hi,
I want to know if the sample implementation below of session variables is
correct.
I am going through the PHP4 Manual, but any clarification would be great
INDEX.PHP
<?
session_start();
$example = 1;
session_register("example") ;
?>
SOME OTHER PAGE
<?
session_start();
if (!isset($example)) {
Header("Location: Index.php") ;
} ?>
I tried using session_is_registered() instead of isset but I am getting
errors, probably because of incorrect syntax. All I want is to redirect the
user back to the main page if the session is not set. Can anyone please show
me the right way.
Thanks
-Mujahid
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]