Results 1 to 5 of 5

Thread: What is the core php.ini directives?

  1. #1
    Join Date
    Apr 2009
    Posts
    569

    What is the core php.ini directives?

    Hi friends,
    I have done some basic things in PHP programming language. I want to know about the core php.ini. Instead of searching about this topic on the Web, I thought to post here, since you have helped me a lot to understand about my queries. Please help me this time also by explaining me about the core php.ini directives.!! Expecting some help as early as possible.!!

  2. #2
    Join Date
    Mar 2008
    Posts
    672

    Re: What is the core php.ini directives?

    Directives handled by extensions are listed and detailed in the pages of the respective extensions. You should know about the runtime configuration for studying about the core php.ini directive. The following are some the behavior of these functions is affected by settings in php.ini :
    • session.save_handler string - Defines the name of the session manager is used for storing and retrieving data. By default, the integrated system files: files.
    • session.save_path string - Defines the path that must be passed to the backup. If you decide to choose the default handler (for file), this argument will be used as backup folder sessions.
    • session.name string - Specifies the name of the session, which will be used as cookie name. It must contain only alphanumeric characters.
    • session.auto_start boolean - Specifies whether the session module should automatically start at the beginning of each PHP script.

  3. #3
    Join Date
    Mar 2008
    Posts
    349

    Re: What is the core php.ini directives?

    The session management system of a large number of directives in the php.ini. The following are some points that describes the same :
    • session.serialize_handler string - Defines the name of the handler which is used to serialize and deserialize data. Currently, the PHP internal format and WDDX are supported.
    • session.gc_probability integer - Specifies the likelihood, expressed as a percentage, in conjunction with session.gc_divisor is that the gc (garbage collection) process is started on each request.
    • session.gc_divisor integer - session.gc_divisor coupled with session.gc_probability defines the probability that the gc (garbage collection) process is started on every session.
    • session.gc_maxlifetime integer - Specifies the lifetime of data on the server, number of seconds. After this period, data will be considered obsolete and may potentially be removed. The data may become obsolete at the start of the session.

  4. #4
    Join Date
    Apr 2008
    Posts
    1,948

    Re: What is the core php.ini directives?

    I would like to tell you something that may be important for you while doing the coding. If different scripts have different values of session.gc_maxlifetime but share the same place for storing the session data then the script whose value is the smallest erase the data. In such cases you will have to use the session.save_path directive. If you use the session manager per file, which is provided by default, your system must keep track of dates of last file access.

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    Re: What is the core php.ini directives?

    The timestamp representing the lifetime of the cookie is set relative to the time server, which is not necessarily the same as the time the browser. The following are some more directives in the php.ini :
    • session.use_cookies boolean - Specifies whether the module will use cookies to store session data on the client. The default is 1, that is to say active.
    • session.use_only_cookies boolean - Specifies whether the module will only use cookies to store session id on the client side. Enabling this setting prevents attacks involved passing session ids in URLs.
    • session.cookie_lifetime integer - Specifies the lifetime of the cookie in seconds. The value of 0 means "until the browser is closed." The default is 0.

Similar Threads

  1. upgrading from i3 core to i5 core or i7 core on intel dh55tc motherboard
    By vik_21184 in forum Motherboard Processor & RAM
    Replies: 6
    Last Post: 01-06-2011, 12:53 AM
  2. Is Dual Core Optimizer needed after upgrading to Quad Core or 6 Core AMD?
    By Bhuvana21 in forum Motherboard Processor & RAM
    Replies: 4
    Last Post: 31-05-2011, 08:31 AM
  3. What are the File Inclusion directives in C?
    By D-Mon in forum Software Development
    Replies: 3
    Last Post: 22-01-2010, 09:55 AM
  4. What are the conditional compilation directives in C?
    By Tailor in forum Software Development
    Replies: 3
    Last Post: 22-01-2010, 08:56 AM
  5. What are the Miscellaneous directives in C?
    By D-Mon in forum Software Development
    Replies: 3
    Last Post: 21-01-2010, 09:49 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,056,789.76140 seconds with 17 queries