You are here: Re: [PHP] Problem with session « PHP « IT news, forums, messages
Re: [PHP] Problem with session

Posted by Greg Donald on 02/05/05 13:53

On Sat, 05 Feb 2005 17:53:01 +0700, Thone <theeraputhm@siamcoolsite.com> wrote:
> Hi,
> I don't know what I did it wrong but i can send any variable through
> seesion. I have something like this:
> //page1.php
> session_start();
> $_SESSION['time_to_expire'] = time + ALIVE_TIME;
>
> //page2.php
> session_start();
> print isset($_SESSION['time_to_expire']);
>
> always get '0';

How are you passing the session from one page to the next? You can
pass it in the url or you can use transparent sessions (cookies).


--
Greg Donald
Zend Certified Engineer
http://destiney.com/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация