Re: Re: session data not recorded

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

 



have a look here..

http://www.php.net/session

scroll down the page you will find some better session handling codings!


vk.



On 7/18/05, Mark Rees <mrees@xxxxxxxxxxxxxxxxx> wrote:
> ""Alessandro Rosa"" <zandor_zz@xxxxxxxx> wrote in message
> news:067150C619714DF08D52B12B9380399B@xxxxxxxxx
> > I have a problem to record session data and I would you
> > help me. I suppose there's something I missed in the general
> > configurations during the last install, but I can't realize it.
> 
> Review the settings in php.ini. In particular look at the one below, which
> means that the session data is persisted by means of cookies.
> 
> ; Whether to use cookies.
> session.use_cookies = 1
> 
> >
> > I arranged a couple of simple files handling sessions, to show you my
> > problem.
> >
> > I have a file index.php :
> > --------------------------------------------------------------------------
> -
> > <?php session_start();
> >
> > $_SESSION['user'] = "User";
> > $_SESSION['psw'] = "Psw";
> >
> 
> What happens if you try to echo these variables in index.php?
> 
> > ?>
> >
> > <a href="page2.php">Go!</a>
> > --------------------------------------------------------------------------
> -
> >
> > and then the file page2.php :
> >
> > --------------------------------------------------------------------------
> -
> > <?php session_start();
> >
> > echo $_SESSION['user'];
> > echo "<br/>";
> > echo $_SESSION['psw'];
> >
> > ?>
> > --------------------------------------------------------------------------
> -
> >
> > But when page2.php is loaded, then a blank page is displayed.
> >
> > What's wrong with this?
> > Thanks in advance.
> >
> > Alessandro
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
vk.

-- 
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