.htaccess php_value

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    The link of reclam from example above, it's not my, it's hoster's )))))

    Comment


      #17
      Originally posted by PoV@rEsK View Post
      GumSlone, your first example is works, and as i found out it will work too:
      * * * .htaccess * * *
      php_value session.use_cookies 0
      php_value session.gc_maxlifetime 20
      php_value session.gc_probability 1
      php_value session.gc_divisor 1
      php_value session.name SID
      * * * * * * * * *
      But there is one thing that i can't understand. See below...
      * * * Demo * * *
      yes i have tested it at my host too, only after you refresh the page the session is destroyed,
      hmm dont know why.

      This is what i got from php.net site:
      session.gc_probability integer
      session.gc_probability in conjunction with session.gc_divisor is used to manage probability that the gc (garbage collection) routine is started. Defaults to 1. See session.gc_divisor for details.
      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 initialization. The probability is calculated by using gc_probability/gc_divisor, e.g. 1/100 means there is a 1% chance that the GC process starts on each request. session.gc_divisor defaults to 100.
      probably the garbage collector is runing only when refresh the page, i think this should not happen when you have many users at your site.
      Advertise your mobile site for FREE with AdTwirl

      Comment


        #18
        i have similar prob the session destroys but unless u click back or reload the page still thinks its active so a redirect is good idea but its not really needed

        i thought that was just a cookie issue

        Comment


          #19
          Thank you very much guys!

          Comment


            #20
            Works ..with minor modifications .. .. Thank you

            Comment

            Working...
            X