Some More Session Functions We have most of
Some More Session Functions We have most of the useful session functions in the above examples. There are some others too: string session_save_path([string path]) Returns the current path in which session files are stored. If the path is specified, it sets the path in which session files are stored: boolean session_is_registered(string name) Returns true if the name passed to the function is a registered session variable, and false if it is not: array session_get_cookie_params() Returns an array of items relating to the session cookie. These items are lifetime (the cookie’s expiration), path (path on the server of files that can access the cookie), domain (the domain setting the cookie), and secure(whether or not the cookie can be accessed outside of a secure connection): void session_set_cookie_params(int lifetime [, string path [, string domain]]) Sets the session cookie values relating to the lifetime, path, and domain of the cookie. This function only lasts for the duration of the script and cannot set the cookie to be required over a secure channel. boolean session_decode(string data) Decodes the session data in the variable passed to the function and stores it in global variables. string session_encode Inserts all session data into a string. This function is useful for passing all session data through the URL (if we are transferring the user to a different server), or to save in a database for later use. string session_cache_limiter([string cache_limiter_string]) Returns the current method of cache limiting if the string isn’t set. Otherwise, caching is set to the method specified in the string. For example, nocache to disable both private and public client-side caching. Though both allow client-side caching, private is slightly more restrictive. Page 234
Hint: This post is supported by Gama hrvatski web hosting services