sessions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MESHULAM GILL

    sessions

    Session does not work on my win xp machine.

    I am using PHP Version 4.3.8
    Apache Version Apache/1.3.31 (Win32) PHP/4.3.8
    any help is appriciated

    my session variable are:
    session
    Session Support enabled
    Registered save handlers files user

    Directive Local Value Master Value
    session.auto_st art Off Off
    session.bug_com pat_42 Off Off
    session.bug_com pat_warn On On
    session.cache_e xpire 180 180
    session.cache_l imiter nocache nocache
    session.cookie_ domain no value no value
    session.cookie_ lifetime 0 0
    session.cookie_ path / /
    session.cookie_ secure Off Off
    session.entropy _file no value no value
    session.entropy _length 0 0
    session.gc_divi sor 1000 1000
    session.gc_maxl ifetime 1440 1440
    session.gc_prob ability 1 1
    session.name PHPSESSID PHPSESSID
    session.referer _check no value no value
    session.save_ha ndler files files
    session.save_pa th C:\AppServ\php\ session C:\AppServ\php\ session
    session.seriali ze_handler php php
    session.use_coo kies On On
    session.use_onl y_cookies Off Off
    session.use_tra ns_sid Off Off


  • Alvaro G Vicario

    #2
    Re: sessions

    *** MESHULAM GILL wrote/escribió (Mon, 04 Apr 2005 13:41:11 GMT):[color=blue]
    > session.auto_st art Off Off[/color]

    This means that usage of session_start() is compulsive. Are you using it?

    [color=blue]
    > session.save_pa th C:\AppServ\php\ session C:\AppServ\php\ session[/color]

    Does this folder exist? Does that User you script runs as have permission
    to write on it?



    --
    -- Álvaro G. Vicario - Burgos, Spain
    -- Don't e-mail me your questions, post them to the group
    --

    Comment

    • Erwin Moller

      #3
      Re: sessions

      MESHULAM GILL wrote:

      Hi Meshulam,
      [color=blue]
      > Session does not work on my win xp machine.
      >
      > I am using PHP Version 4.3.8
      > Apache Version Apache/1.3.31 (Win32) PHP/4.3.8
      > any help is appriciated
      >
      > my session variable are:
      > session
      > Session Support enabled
      > Registered save handlers files user
      >
      > Directive Local Value Master Value
      > session.auto_st art Off Off[/color]

      I always set this to Yes.
      If you autostart session, you safe yourself a lot of session_starts( ) at the
      top of your scripts.

      [color=blue]
      > session.bug_com pat_42 Off Off
      > session.bug_com pat_warn On On
      > session.cache_e xpire 180 180
      > session.cache_l imiter nocache nocache
      > session.cookie_ domain no value no value
      > session.cookie_ lifetime 0 0
      > session.cookie_ path / /[/color]

      This is clearly wrong.
      You should set here where the server stores the session.
      It must be a location where apache can read/write.

      I do not think that Apache can write to /
      Try something more sensible, or make your own directory.

      [color=blue]
      > session.cookie_ secure Off Off
      > session.entropy _file no value no value
      > session.entropy _length 0 0
      > session.gc_divi sor 1000 1000
      > session.gc_maxl ifetime 1440 1440
      > session.gc_prob ability 1 1
      > session.name PHPSESSID PHPSESSID
      > session.referer _check no value no value
      > session.save_ha ndler files files
      > session.save_pa th C:\AppServ\php\ session C:\AppServ\php\ session
      > session.seriali ze_handler php php
      > session.use_coo kies On On
      > session.use_onl y_cookies Off Off
      > session.use_tra ns_sid Off Off[/color]

      Well, you have to show us some code.
      But first play around with the above suggestions.

      Good luck,
      Regards,
      Erwin Moller

      Comment

      • Alvaro G Vicario

        #4
        Re: sessions

        *** Erwin Moller wrote/escribió (Mon, 04 Apr 2005 16:29:26 +0200):[color=blue]
        > I always set this to Yes.
        > If you autostart session, you safe yourself a lot of session_starts( ) at the
        > top of your scripts.[/color]

        So you read session data from disk and load into memory on every script in
        your site, no matter they use sessions or not. I prefer to save work in
        execution rather than in coding ;-)
        [color=blue][color=green]
        >> session.cookie_ path / /[/color]
        >
        > This is clearly wrong.
        > You should set here where the server stores the session.
        > It must be a location where apache can read/write.[/color]

        You're confusing it with "session.save_p ath". This is the cookie path,
        which is a public web server directory.



        --
        -- Álvaro G. Vicario - Burgos, Spain
        -- Don't e-mail me your questions, post them to the group
        --

        Comment

        • Erwin Moller

          #5
          Re: sessions

          Alvaro G Vicario wrote:
          [color=blue]
          > *** Erwin Moller wrote/escribió (Mon, 04 Apr 2005 16:29:26 +0200):[color=green]
          >> I always set this to Yes.
          >> If you autostart session, you safe yourself a lot of session_starts( ) at
          >> the top of your scripts.[/color]
          >
          > So you read session data from disk and load into memory on every script in
          > your site, no matter they use sessions or not. I prefer to save work in
          > execution rather than in coding ;-)[/color]

          Excactly.
          :-)

          Seriously, i never hit any performanceprob lems reading an empty session.
          And if you need the session, it is just there.

          Of course, it is extra overhead, but that is what servers are for: Making my
          life easier.

          [color=blue]
          >[color=green][color=darkred]
          >>> session.cookie_ path / /[/color]
          >>
          >> This is clearly wrong.
          >> You should set here where the server stores the session.
          >> It must be a location where apache can read/write.[/color]
          >
          > You're confusing it with "session.save_p ath". This is the cookie path,
          > which is a public web server directory.[/color]

          True. You are right of course.
          I stand corrected.
          I'll get a cup of coffee. :-)

          Regards,
          Erwin Moller

          Comment

          Working...