Hi !!! I want to know if someone could help :
1. If there is a function to end a session in PHP? or How do I suppose to end session_start()?
2. Exists a function to obtain the IP adress of a user in PHP?
Thanks
Moderator: General Moderators
It depends on what do you mean by 'ending a session'... [php_man]session_destroy[/php_man] destroys the session, [php_man]session_write_close[/php_man] flushes all changes made to session vars to disk and closes the session file.farid wrote: 1. If there is a function to end a session in PHP? or How do I suppose to end session_start()?
$_SERVER['REMOTE_ADDR'] contains the IP address of the remote machine (either the IP address of the user, or IP of his/her proxy server).farid wrote: 2. Exists a function to obtain the IP adress of a user in PHP?