Re: Setting cookies doesn't seem to be working

From: Date: Tue, 22 Oct 2002 10:38:23 +0000
Subject: Re: Setting cookies doesn't seem to be working
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-16466@lists.php.net to get a copy of this message
hay john try this setiin it: // initiate a session session_start(); // register some session variables session_register("SESSION"); // redirect to protected page header("Location: /mbrchk.php". $login ); exit(); checkin it: // session check session_start(); if (!session_is_registered("SESSION")) { // if session check fails, invoke error handler header("Location: /nolgn.php"); exit(); } there u ve it all DUN hope it helps good luck toby ...... --- John Meyer <johnmeyer_1978@yahoo.com> wrote: > Win2000, IIS, PHP 4.2.1 > > > Code: > > $userid = $rowset["USER_ID"]; > setcookie("user[name]",$userid); > setcookie("user[password]",$password); > > > Doesn't seem to be setting the cookies. > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com

« previous php.windows (#16466) next »