RE: @session_start generates a new session_id

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'll try that, thanks a lot.


-----Original Message-----
From: Reinhart Viane [mailto:rv@xxxxxxxx] 
Sent: Tuesday, October 26, 2004 12:49 PM
To: 'Lizet Peña de Sola'; php-general@xxxxxxxxxxxxx
Subject: RE:  @session_start generates a new session_id


Instead of:
	<? $_SESSION['validlogin']=""; $_SESSION['username']="";
$_SESSION['password']=""; unset($_SESSION['validlogin']);
unset($_SESSION['username']); unset($_SESSION['password']);
session_unset(); print("username=".$_SESSION	['username']);
	print("password=".$_SESSION['password']);

	if(session_id()){
	session_destroy();}
	?>

Try this:

//unregister the sessions
$_SESSION['validlogin']=""; $_SESSION['username']="";
$_SESSION['password']=""; //destroy the sessions array $_SESSION = array(); 
//destroy the session
session_destroy(); 

Greetings
Reinhart Viane






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

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


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

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux