Re: Session in Windows 2000

From: Date: Wed, 16 Aug 2000 13:50:26 +0000
Subject: Re: Session in Windows 2000
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-1847@lists.php.net to get a copy of this message
Hi, Are you sure that your Date and Time config is alright ?? Your mail was dated (!!!): Date: Thu, 16 Aug 2012 22:19:20 -0300 Please, correct your machine time... Danilo Meles wrote: > Hi Folk's > > I'm having some problems using session on PHP. > > PHP is installed under Windows 2000 IIS (INtenet Information server) > > I Create a session using the code above: > session_start(); > session_name("teste"); > $session_login = "$login"; > session_register("session_login"); > > And the session is saved in the correct folder I put in php.ini. > > The problem is at the time the user click to logoff this application, I've > used: > > session_start("teste"); > if ( !session_destroy("teste") ) { > echo "User conected!!!"; > } > else { > echo "User not conected $temp !!!"; > } > > When it ocurrs , user will not be able to access any template on the site > because the session must exist. Something like this: > session_start("teste"); > > if (session_is_registered("session_login")) { > echo "Clique para desconectar: "; > echo "<a href=\"desconectar.php\">Desconectar</a>"; > > } > else { > header("Location: index.php"); > } > > The problem is when the session is destroyed , nothing happens. The session > was not destroyed. But if we run the same application on linux it works > very good !!! > > Could you help me, please??? > > Thank you a lot!! > > Danilo Meles > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#1847) next »