1. Passing parameters & Session Tracking in PHP Prof. Ami Tusharkant Choksi Assistant Professor, Computer Engg. Dept., C.K.Pithawalla College of Engg. & Tech., Surat, Gujarat State, India.
2. What is Parameter Passing & Session Tracking? -> Values of the text typed in user form is passed to other HTML and/or server side script is called parameter passing . -> A session refers to all the connections that a single client might make to a server in the course of viewing any pages associated with a given application.[1] -> Maintenance of user's state during session(e.g.login to logout) is called a Session Tracking .
11. Retrieval of File at Server #/uploads must be having o+rwx permission $uploaddir = "/uploads/"; $uploadfile = $uploaddir . basename($_POST["filename"]); if (move_uploaded_file($_FILES["filename"]["tmp_name"], $uploadfile)) { echo "File is valid, and was successfully uploaded."; } else { echo "Possible file upload attack!"; }
12.
13.
14.
15.
16. Session Functions [2] session_cache_expire â Return current cache expire session_cache_limiter â Get and/or set the current cache limiter session_commit â Alias of session_write_close session_decode â Decodes session data from a string session_destroy â Destroys all data registered to a session session_encode â Encodes the current session data as a string session_get_cookie_params â Get the session cookie parameters session_id â Get and/or set the current session id session_is_registered â Find out whether a global variable is registered in a session session_module_name â Get and/or set the current session module session_name â Get and/or set the current session name session_regenerate_id â Update the current session id with a newly generated one session_register â Register one or more global variables with the current session session_save_path â Get and/or set the current session save path session_set_cookie_params â Set the session cookie parameters session_set_save_handler â Sets user-level session storage functions session_start â Initialize session data session_unregister â Unregister a global variable from the current session session_unset â Free all session variables session_write_close â Write session data and end session