0 phpiniall 1 phpiniall sessiongcdivisor 100 phpiniall

This preview shows page 11 - 13 out of 13 pages.

"0"PHP_INI_ALLsession.gc_probability"1"PHP_INI_ALL
session.gc_divisor"100"PHP_INI_ALLsession.gc_maxlifetime"1440"PHP_INI_ALLsession.serialize_handler"php"PHP_INI_ALLsession.cookie_lifetime"0"PHP_INI_ALLsession.cookie_path"/"PHP_INI_ALLsession.cookie_domain""PHP_INI_ALLsession.cookie_secure""PHP_INI_ALLsession.use_cookies"1"PHP_INI_ALLsession.use_only_cookies"0"PHP_INI_ALLsession.referer_check""PHP_INI_ALLsession.entropy_file""PHP_INI_ALLsession.entropy_length"0"PHP_INI_ALLsession.cache_limiter"nocache"PHP_INI_ALLsession.cache_expire"180"PHP_INI_ALLsession.use_trans_sid"0"PHP_INI_SYSTEM/PHP_INI_PERDIRsession.bug_compat_42"1"PHP_INI_ALLsession.bug_compat_warn"1"PHP_INI_ALLsession.hash_function"0"PHP_INI_ALLsession.hash_bits_per_character"4"PHP_INI_ALLurl_rewriter.tags"a=href,area=href,frame=src,input=src,form=fakeentry"PHP_INI_ALLA simple example of this use would be this code: <?php //Setting The Session Saving path to "sessions", //'''must be protected from reading''' session_save_path("sessions"); // This function is an alternative to ini_set("session.save_path","sessions"); //Session Cookie's Lifetime ( not effective, but use! ) ini_set("session.cookie_lifetime",time()+60*60*24*500);
//Change the Session Name from PHPSESSID to SessionID session_name("SessionID"); //Start The session session_start(); //Set a session cookie ( Required for some browsers, //as settings that had been done before are not very effective setcookie(session_name(), session_id(), time()+3600*24*365, "/"); ?>This example simply sets the cookie for the next year.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture