[PHP-WIN] Re: Properly ending a session

2002-07-14 Thread Micha

You can use session_destroy(), this will delete the session (even from the
HD).

-micha

Matt Babineau wrote:

> How can I properly terminate a session? I am working on a login/logout
> system and I need to login as a different user for testing so I want to
> be able to log myself out. I am using session variables to indicate my
> user ID when logged in. Are there any specific methods to use to "log
> myself out"?
>
> Matt Babineau
> MCWD / CCFD
> -
> e:  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
> p: 603.943.4237
> w:  <http://www.criticalcode.com/> http://www.criticalcode.com
> PO BOX 601
> Manchester, NH 03105
>


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] socket_set_block(); - question

2002-07-24 Thread Micha

Hi,

I found the function socket_set_block(); in ext/sockets/sockets.c (the
function is not documented) and I tried to use it but it seems to
doesn't take effect...
Why doesn't this function work ? Am I doing something wrong ?

Here is my code:

  function sockRead($length = 1) {
  socket_set_block($this->IcqSocket);
  return @socket_read($this->IcqSocket, $length,
PHP_BINARY_READ);
  socket_set_nonblock($this->IcqSocket);
  }


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php