Hey

I have a problem with sessions,
with the code below If I post i always seems to get the same session_id 
That is not the idea.
I want to generate everytime a unique one 
what is wrong with my code 



if ($action =="logout"){

session_destroy();         
print "destroy";
}

if ( $action == "post" ){
session_start();
session_register($username);
print session_id();
print "<BR><input type='text' name='azerty' size='100'>";
print "<a
href='http://192.168.101.75/netsaint/ldap3.php?action=logout'>Logout</a>";
}

if ( $action == "" ){
print"
<form name='test' action
='http://192.168.101.75/netsaint/ldap3.php?action=post' method ='post'>
Login : <input type='text' name='username'>
Password : <input type='password' name='password'>
<input type='submit' name='blabla' value='blabla'>
</form>
";
} 
?>









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

Reply via email to