Reply to Re: Strange things with sessions

Your name:

Reply:


Posted by Captain Paralytic on 11/09/07 18:49

On 9 Nov, 18:37, Darko <darko.maksimo...@gmail.com> wrote:
> On Nov 9, 5:44 pm, Ezechiele <esechi...@wolfland.it> wrote:
>
>
>
>
>
> > Hi,
>
> > I have problems with this following script that is called from page1.php
> > and then go back to the calling page. But it seems the SESSION values are
> > not saved properly, for in the calling page they are empty.
> > This is the script:
>
> > <?php
> > session_start();
> > error_reporting(E_ALL);
> > if (!defined("BASE_PATH")) define('BASE_PATH', isset($_SERVER
> > ['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] : substr($_SERVER
> > ['PATH_TRANSLATED'],0, -1*strlen($_SERVER['SCRIPT_NAME'])));
> > $_SERVER['DOCUMENT_ROOT']=BASE_PATH;
> > include($_SERVER['DOCUMENT_ROOT']."/script/dbconnect.php");
> > if (!isset($_SESSION['Login'])) $_SESSION['Login']=false;
> > //echo "SESSION[Login]:".$_SESSION['Login'];
> > $IdUser=session_id();
> > $data=date('Y-m-d');
> > if (!isset($HTTP_COOKIE_VARS["TeachingOnLine"]))
> > setcookie("TeachingOnLine",$IdUser,time()+60*60*24*365);
> > ...
>
> I wander where's Steve to kick your ass for such flagrant formatting.
> I give up.- Hide quoted text -
>
> - Show quoted text -

He's busy over on comp.databases.mysql blaming usenet for his
inability to follow a conversation!

[Back to original 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

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