session_start() fails

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    session_start() fails

    I get the following error message.

    Warning: session_start() : open(/tmp\sess_9c7a72 1569fd097dc4dad 85162984ebc,
    O_RDWR) failed: No such file or directory (2) in
    c:\inetpub\wwwr oot\julseth\ser enadehoa\defaul t.php on line 3

    What do I have wrong? This php page runs okay on my desktop. I am trying to
    get my laptop able to run the same web page but, as you can see, it fails.

    Thanks for the help....

    Bruce


  • Guest's Avatar

    #2
    Re: session_start() fails


    <bruceaj@attglo bal.net> wrote in message news:3fdbe883_2 @news1.prserv.n et...[color=blue]
    > I get the following error message.
    >
    > Warning: session_start() : open(/tmp\sess_9c7a72 1569fd097dc4dad 85162984ebc,
    > O_RDWR) failed: No such file or directory (2) in
    > c:\inetpub\wwwr oot\julseth\ser enadehoa\defaul t.php on line 3
    >
    > What do I have wrong? This php page runs okay on my desktop. I am trying[/color]
    to[color=blue]
    > get my laptop able to run the same web page but, as you can see, it fails.
    >
    > Thanks for the help....
    >
    > Bruce
    >
    >[/color]

    This message looks familiar - didn't someone jusk ask this somewhere ?
    Your /tmp looks suspicious. Unix type file path on a Windows box ?



    Comment

    • Bruce A. Julseth

      #3
      Re: session_start() fails (2nd request)

      Haven't heard anything on this problem!! Anyone out there in PHP land have a
      suggestion on what's wrong here.

      Thanks...

      Bruce

      <xyzzy> wrote in message news:28OdnV_Xle rRc0aiRVn-gQ@comcast.com. ..[color=blue]
      >
      > <bruceaj@attglo bal.net> wrote in message[/color]
      news:3fdbe883_2 @news1.prserv.n et...[color=blue][color=green]
      > > I get the following error message.
      > >
      > > Warning: session_start() :[/color][/color]
      open(/tmp\sess_9c7a72 1569fd097dc4dad 85162984ebc,[color=blue][color=green]
      > > O_RDWR) failed: No such file or directory (2) in
      > > c:\inetpub\wwwr oot\julseth\ser enadehoa\defaul t.php on line 3
      > >
      > > What do I have wrong? This php page runs okay on my desktop. I am[/color][/color]
      trying[color=blue]
      > to[color=green]
      > > get my laptop able to run the same web page but, as you can see, it[/color][/color]
      fails.[color=blue][color=green]
      > >
      > > Thanks for the help....
      > >
      > > Bruce
      > >
      > >[/color]
      >
      > This message looks familiar - didn't someone jusk ask this somewhere ?
      > Your /tmp looks suspicious. Unix type file path on a Windows box ?
      >
      >
      >[/color]


      Comment

      • Shawn Wilson

        #4
        Re: session_start() fails (2nd request)

        "Bruce A. Julseth" wrote:[color=blue]
        >
        > Haven't heard anything on this problem!! Anyone out there in PHP land have a
        > suggestion on what's wrong here.
        >
        > Thanks...
        >
        > Bruce
        >
        > <xyzzy> wrote in message news:28OdnV_Xle rRc0aiRVn-gQ@comcast.com. ..[color=green]
        > >
        > > <bruceaj@attglo bal.net> wrote in message[/color]
        > news:3fdbe883_2 @news1.prserv.n et...[color=green][color=darkred]
        > > > I get the following error message.
        > > >
        > > > Warning: session_start() :[/color][/color]
        > open(/tmp\sess_9c7a72 1569fd097dc4dad 85162984ebc,[color=green][color=darkred]
        > > > O_RDWR) failed: No such file or directory (2) in
        > > > c:\inetpub\wwwr oot\julseth\ser enadehoa\defaul t.php on line 3
        > > >
        > > > What do I have wrong? This php page runs okay on my desktop. I am[/color][/color]
        > trying[color=green]
        > > to[color=darkred]
        > > > get my laptop able to run the same web page but, as you can see, it[/color][/color]
        > fails.[color=green][color=darkred]
        > > >
        > > > Thanks for the help....
        > > >
        > > > Bruce
        > > >
        > > >[/color]
        > >
        > > This message looks familiar - didn't someone jusk ask this somewhere ?
        > > Your /tmp looks suspicious. Unix type file path on a Windows box ?[/color][/color]

        According to Google Groups you didn't address these 2 lines ^^

        It appears PHP is trying to open a file to store the sessions using a *nix
        filepath. If that's the case you'd have to change the session.save_pa th
        variable in php.ini to a windows directory, I believe. See:



        On that page you will see:
        Note: Windows users have to change this variable in order to use PHP's session
        functions. Make sure to specify a valid path, e.g.: c:/temp.

        Regards,
        Shawn
        --
        Shawn Wilson
        shawn@glassgian t.com

        Comment

        • Bruce A. Julseth

          #5
          Re: session_start() fails (2nd request)

          Fixing the php.ini has corrected the problem. Thanks...

          Bruce

          "Shawn Wilson" <shawn@glassgia nt.com> wrote in message
          news:3FDF0F60.B 10D9943@glassgi ant.com...[color=blue]
          > "Bruce A. Julseth" wrote:[color=green]
          > >
          > > Haven't heard anything on this problem!! Anyone out there in PHP land[/color][/color]
          have a[color=blue][color=green]
          > > suggestion on what's wrong here.
          > >
          > > Thanks...
          > >
          > > Bruce
          > >
          > > <xyzzy> wrote in message news:28OdnV_Xle rRc0aiRVn-gQ@comcast.com. ..[color=darkred]
          > > >
          > > > <bruceaj@attglo bal.net> wrote in message[/color]
          > > news:3fdbe883_2 @news1.prserv.n et...[color=darkred]
          > > > > I get the following error message.
          > > > >
          > > > > Warning: session_start() :[/color]
          > > open(/tmp\sess_9c7a72 1569fd097dc4dad 85162984ebc,[color=darkred]
          > > > > O_RDWR) failed: No such file or directory (2) in
          > > > > c:\inetpub\wwwr oot\julseth\ser enadehoa\defaul t.php on line 3
          > > > >
          > > > > What do I have wrong? This php page runs okay on my desktop. I am[/color]
          > > trying[color=darkred]
          > > > to
          > > > > get my laptop able to run the same web page but, as you can see, it[/color]
          > > fails.[color=darkred]
          > > > >
          > > > > Thanks for the help....
          > > > >
          > > > > Bruce
          > > > >
          > > > >
          > > >
          > > > This message looks familiar - didn't someone jusk ask this somewhere ?
          > > > Your /tmp looks suspicious. Unix type file path on a Windows box ?[/color][/color]
          >
          > According to Google Groups you didn't address these 2 lines ^^
          >
          > It appears PHP is trying to open a file to store the sessions using a *nix
          > filepath. If that's the case you'd have to change the session.save_pa th
          > variable in php.ini to a windows directory, I believe. See:
          >
          > http://ca2.php.net/manual/en/ref.session.php
          >
          > On that page you will see:
          > Note: Windows users have to change this variable in order to use PHP's[/color]
          session[color=blue]
          > functions. Make sure to specify a valid path, e.g.: c:/temp.
          >
          > Regards,
          > Shawn
          > --
          > Shawn Wilson
          > shawn@glassgian t.com
          > http://www.glassgiant.com[/color]


          Comment

          Working...