increase (override) session time

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • pipesportugal
    Second Lieutenant

    • Jul 2007
    • 130

    increase (override) session time

    Hello dear colleagues from the VH forum,

    Sometime ago the admin of my VH server has decreased the session time and now when I am using our reserved area the session extinguishes very fast.
    Also when I am using my usual FTP program to download my php and html files to the server, I hardly have time to make my changes and I am forced to make login again.

    Can please someone tell me how from inside my php program can I increase this time ?

    Regards and thanks in advance,
    pipesportugal
  • Karen Mac
    General

    • Apr 2006
    • 8332

    #2
    Re: increase (override) session time

    Contact support.

    Karen

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    02036089024 / United Kingdom
    291916438 / Australia

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


    Comment

    • pipesportugal
      Second Lieutenant

      • Jul 2007
      • 130

      #3
      Re: increase (override) session time

      Hi,

      I have just tried to use the following instruction:
      PHP Code:
       <?php 
      ini_set
      ('session.gc_maxlifetime'28800); 
      ?>
      This would set maxlifetime to 4 hours, overwriting php.ini’s value.
      It did not work for me, because as I am using a shared server I supose that am not allowed to customize this parameter for my use.

      Thank You Karen,
      pipesportugal

      Comment

      • Karen Mac
        General

        • Apr 2006
        • 8332

        #4
        Re: increase (override) session time

        yes.. on a shared server things are not freely accessible for security reasons. What you set on yours could affect others and their usage. Thats why you need to contact support.

        Karen

        VodaHost

        Your Website People!
        1-302-283-3777 North America / International
        02036089024 / United Kingdom
        291916438 / Australia

        ------------------------

        Top 3 Best Sellers

        Web Hosting - Unlimited disk space & bandwidth.

        Reseller Hosting - Start your own web hosting business.

        Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


        Comment

        Working...
        X