You are here: Re: trouble with PHP session - i think ???? « PHP Programming Language « IT news, forums, messages
Re: trouble with PHP session - i think ????

Posted by SA SA on 07/12/07 20:00

On Jul 12, 3:10 pm, #2pencil <number2pen...@gmail.com> wrote:
> login.php
> <?
>
> session_start();
> $expiry = 60*60; //1hr in seconds
> setcookie(session_name(), session_id(), time()+$expiry, "/");
> ?>
>
> ....
> ....
> ....
> else //FORM SUBMITTED
>
> It looks as if you close your php code block & then never start it
> again. Was this part not pasted, or is this how your code actually
> reads? Also, you should start your php code block with <?php rather
> than just <?.
>
> -#2pencil-http://www.akroncdnr.com

Thanks
I added <?PHP but did not make difference. As for as code block. I
just did not copied all code - just portion. It is open and closed and
open properly.

It worked in the past - i am having this issue ever since hosting
company moved me to different server.

thanks
sa

 

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

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