Re: Re[4]: Lost session variables still confounding me

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

 



--- Richard Davey <rich@xxxxxxxxxxxxxxxx> wrote:

> Try sticking this on Page 2 (ensure you have a
> session_start() at the
> top of the page and that you replace the 'var' text
> below with the
> correct ones.
> 
> if (isset($_POST['var']))
> {
>    echo 'POST value found, setting the session var
> now';
>    $_SESSION['var'] = $_POST['var'];
> }
> else
> {
>     echo 'No POST value found, dumping session
> contents';
>     print_r($_SESSION);
> }
> 
> Run it - make it error - what does it end up saying?
> 

Before the redirect:

POST value found, setting the session var now


After the redirect: 

No POST value found, dumping session contentsArray (
[xx_user_xxx] => username [xx_id_xxx] => 47
[xx_level_xxx] => BasicUser [f1a] => [WAVT_TestMulti2]
=> [f1b] => [f1c] => [f1d] => [f1e] => [f1g] =>
[inder] => you have selected too many industries )

Stuart

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux