[prev in list] [next in list] [prev in thread] [next in thread]
List: php-general
Subject: Re: [PHP] $_session/$_cookie trouble
From: 98.201.4.202
Date: 2009-04-28 23:31:17
Message-ID: 32.67.21632.8C197F94 () pb1 ! pair ! com
[Download RAW message or body]
Gary wrote:
> Thanks again, dont see any DOM....
>
> As I mentioned I am no longer getting error message, but not sure it is
> working.
>
> I have this at the begining of the first file.
>
> <?php
> session_start();
> setcookie('sale_cookie','$sale_value', time()-3600);
> setcookie('assess_cookie','$assess_value', time()-3600);
>
> if (isset($_COOKIE['sale_cookie']) && isset($_COOKIE['assess_cookie']))
> {
> $_SESSION['sale_value'] = $_COOKIE['sale_cookie'];
> $_SESSION['assess_value'] = $_COOKIE['assess_cookie'];
> }
>
> ?>
>
>
>
> I have tried this
>
> echo $sale_value;
> echo $_SESSION['assess_value'];
> echo $_COOKIE['sale_cookie'];
>
> I have also removed all of the if() and still not had success
>
> None of which are producing results...
>
> Anyone see where I am going wrong... I have spent all day online, in the
> books, in the manual...
>
> Thanks again
>
> gary
Maybe I'm missing something, but why are you using session vars and
cookie vars like you are? If you start a session it creates a cookie to
track the session and the session persists your session vars. Why not
just use session vars?
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic