Sessions not working in windows vista

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

    Sessions not working in windows vista

    Hi All,

    I am trying to pass value from a page to another page through session
    variable.

    session_start() ;
    $_SESSION["ses_aid"] = $value("aid");
    .....

    $_SESSION["ses_aid"] has value within its original page. But
    $_SESSION["ses_aid"] has empty value in another page. Even I have
    placed session_start() ; in every page.

    I have developed the site in Windows Vista Home Premium with latest
    version of both PHP and mySQL.

    Could you please help me because i need it urgently?
  • Rik Wasmus

    #2
    Re: Sessions not working in windows vista

    On Tue, 22 Apr 2008 06:23:15 +0200, Angkor <eapsokha@gmail .comwrote:
    Hi All,
    >
    I am trying to pass value from a page to another page through session
    variable.
    >
    session_start() ;
    $_SESSION["ses_aid"] = $value("aid");
    ....
    >
    $_SESSION["ses_aid"] has value within its original page. But
    $_SESSION["ses_aid"] has empty value in another page. Even I have
    placed session_start() ; in every page.
    >
    I have developed the site in Windows Vista Home Premium with latest
    version of both PHP and mySQL.
    >
    Could you please help me because i need it urgently?
    1) Check wether the cookie is accepted by the browser.
    2) Check wether the output of session_id() stays the same.
    3) Check wether there's a file created in session.save_pa th, and possible
    user write permissions for this path.
    --
    Rik Wasmus

    Comment

    • Captain Paralytic

      #3
      Re: Sessions not working in windows vista

      On 22 Apr, 04:23, Angkor <eapso...@gmail .comwrote:
      Hi All,
      >
      I am trying to pass value from a page to another page through session
      variable.
      >
      session_start() ;
      $_SESSION["ses_aid"] = $value("aid");
      ....
      >
      $_SESSION["ses_aid"] has value within its original page. But
      $_SESSION["ses_aid"] has empty value in another page. Even I have
      placed session_start() ; in every page.
      >
      I have developed the site in Windows Vista Home Premium with latest
      version of both PHP and mySQL.
      >
      Could you please help me because i need it urgently?
      You are using IIS?

      Comment

      • Angkor

        #4
        Re: Sessions not working in windows vista

        On Apr 22, 5:05 pm, Captain Paralytic <paul_laut...@y ahoo.comwrote:
        On 22 Apr, 04:23, Angkor <eapso...@gmail .comwrote:
        >
        >
        >
        Hi All,
        >
        I am trying to pass value from a page to another page through session
        variable.
        >
        session_start() ;
        $_SESSION["ses_aid"] = $value("aid");
        ....
        >
        $_SESSION["ses_aid"] has value within its original page. But
        $_SESSION["ses_aid"] has empty value in another page. Even I have
        placed session_start() ; in every page.
        >
        I have developed the site in Windows Vista Home Premium with latest
        version of both PHP and mySQL.
        >
        Could you please help me because i need it urgently?
        >
        You are using IIS?
        - How to check whether session_id(); stay the same? If not, what
        should i do?
        - Yes, I am using IIS.

        Comment

        • Captain Paralytic

          #5
          Re: Sessions not working in windows vista

          On 22 Apr, 14:40, Angkor <eapso...@gmail .comwrote:
          On Apr 22, 5:05 pm, Captain Paralytic <paul_laut...@y ahoo.comwrote:
          >
          >
          >
          On 22 Apr, 04:23, Angkor <eapso...@gmail .comwrote:
          >
          Hi All,
          >
          I am trying to pass value from a page to another page through session
          variable.
          >
          session_start() ;
          $_SESSION["ses_aid"] = $value("aid");
          ....
          >
          $_SESSION["ses_aid"] has value within its original page. But
          $_SESSION["ses_aid"] has empty value in another page. Even I have
          placed session_start() ; in every page.
          >
          I have developed the site in Windows Vista Home Premium with latest
          version of both PHP and mySQL.
          >
          Could you please help me because i need it urgently?
          >
          You are using IIS?
          >
          - How to check whether session_id(); stay the same? If not, what
          should i do?
          - Yes, I am using IIS.
          I'd advise you to install wampserver or XAMPP, if that's an option.

          Comment

          • Erwin Moller

            #6
            Re: Sessions not working in windows vista

            Captain Paralytic schreef:
            On 22 Apr, 14:40, Angkor <eapso...@gmail .comwrote:
            >On Apr 22, 5:05 pm, Captain Paralytic <paul_laut...@y ahoo.comwrote:
            >>
            >>
            >>
            >>On 22 Apr, 04:23, Angkor <eapso...@gmail .comwrote:
            >>>Hi All,
            >>>I am trying to pass value from a page to another page through session
            >>>variable.
            >>>session_star t();
            >>>$_SESSION["ses_aid"] = $value("aid");
            >>>....
            >>>$_SESSION["ses_aid"] has value within its original page. But
            >>>$_SESSION["ses_aid"] has empty value in another page. Even I have
            >>>placed session_start() ; in every page.
            >>>I have developed the site in Windows Vista Home Premium with latest
            >>>version of both PHP and mySQL.
            >>>Could you please help me because i need it urgently?
            >>You are using IIS?
            >- How to check whether session_id(); stay the same? If not, what
            >should i do?
            >- Yes, I am using IIS.
            >
            I'd advise you to install wampserver or XAMPP, if that's an option.
            Well he didn't ask for that, did he?
            He is using IIS, and PHP works perfectly well on IIS (well almost
            perfectly).

            I would advise him to check Riks questions.

            Regards,
            Erwin Moller

            Comment

            • venti

              #7
              Re: Sessions not working in windows vista

              Well he didn't ask for that, did he?
              He is using IIS, and PHP works perfectly well on IIS (well almost
              perfectly).
              >
              I would advise him to check Riks questions.
              >
              Regards,
              Erwin Moller
              He may not have asked, but sweet heavens just move to linux and be
              done with it.

              Short of that, run WAMP.

              Short of that, don't forget:
              session_registe r("ses_aid");

              Comment

              • Rik Wasmus

                #8
                Re: Sessions not working in windows vista

                On Tue, 22 Apr 2008 21:01:53 +0200, venti
                <timgregory@shi eldinvestmentgr oup.comwrote:
                >Well he didn't ask for that, did he?
                >He is using IIS, and PHP works perfectly well on IIS (well almost
                >perfectly).
                >>
                >I would advise him to check Riks questions.
                >
                He may not have asked, but sweet heavens just move to linux and be
                done with it.
                Nonsense. While I prefer a LAMP server, running a WIMP is not that
                difficult either.
                Short of that, don't forget:
                session_registe r("ses_aid");
                session_registe r() is antiqued now. If you're still using it: don't.
                --
                Rik Wasmus

                Comment

                • venti

                  #9
                  Re: Sessions not working in windows vista

                  On Apr 22, 3:19 pm, "Rik Wasmus" <luiheidsgoe... @hotmail.comwro te:
                  On Tue, 22 Apr 2008 21:01:53 +0200, venti
                  >
                  <timgreg...@shi eldinvestmentgr oup.comwrote:
                  Well he didn't ask for that, did he?
                  He is using IIS, and PHP works perfectly well on IIS (well almost
                  perfectly).
                  >
                  I would advise him to check Riks questions.
                  >
                  He may not have asked, but sweet heavens just move to linux and be
                  done with it.
                  >
                  Nonsense. While I prefer a LAMP server, running a WIMP is not that
                  difficult either.
                  >
                  Short of that, don't forget:
                  session_registe r("ses_aid");
                  >
                  session_registe r() is antiqued now. If you're still using it: don't.
                  --
                  Rik Wasmus
                  session_registe r may be depracated, but if you're running a windows
                  server for anything, you're crazy. Sure it's easy, you just run the
                  wamp executable. But then things start to get weird, like session
                  data dissapears. So if you're still using WAMP/WIMP for production,
                  don't.

                  Comment

                  • Rik Wasmus

                    #10
                    Re: Sessions not working in windows vista

                    On Tue, 22 Apr 2008 22:14:36 +0200, venti
                    <timgregory@shi eldinvestmentgr oup.comwrote:
                    On Apr 22, 3:19 pm, "Rik Wasmus" <luiheidsgoe... @hotmail.comwro te:
                    >On Tue, 22 Apr 2008 21:01:53 +0200, venti
                    >>
                    ><timgreg...@sh ieldinvestmentg roup.comwrote:
                    >Well he didn't ask for that, did he?
                    >He is using IIS, and PHP works perfectly well on IIS (well almost
                    >perfectly).
                    >>
                    >I would advise him to check Riks questions.
                    >>
                    He may not have asked, but sweet heavens just move to linux and be
                    done with it.
                    >>
                    >Nonsense. While I prefer a LAMP server, running a WIMP is not that
                    >difficult either.
                    >>
                    Short of that, don't forget:
                    session_registe r("ses_aid");
                    >>
                    >session_regist er() is antiqued now. If you're still using it: don't.
                    >
                    session_registe r may be depracated, but if you're running a windows
                    server for anything, you're crazy.
                    Nonsense. A nice Windows Server with Exchange, BackOffice, and all that
                    Office / Outlook / SQL integration stuff is perfectly suitable for an
                    mid-sized company (and no matter what people say often more cheaper,
                    reliable, and easier to maintain by the people there themselves than all
                    that fancy free and/or open source equivalents). If they need a website
                    tightly integrated into that system (identify users etc.), using Windows &
                    IIS is likely to be a lot easier.
                    Sure it's easy, you just run the
                    wamp executable. But then things start to get weird, like session
                    data dissapears. So if you're still using WAMP/WIMP for production,
                    don't.
                    Depends on the circumstances. For a dedicated webserver (and only that)
                    I'd say you were correct, but don't underestimate the wants, needs and
                    other roles of the same machine in intranets.
                    --
                    Rik Wasmus

                    Comment

                    • Jerry Stuckle

                      #11
                      Re: Sessions not working in windows vista

                      venti wrote:
                      On Apr 22, 3:19 pm, "Rik Wasmus" <luiheidsgoe... @hotmail.comwro te:
                      >On Tue, 22 Apr 2008 21:01:53 +0200, venti
                      >>
                      ><timgreg...@sh ieldinvestmentg roup.comwrote:
                      >>>Well he didn't ask for that, did he?
                      >>>He is using IIS, and PHP works perfectly well on IIS (well almost
                      >>>perfectly) .
                      >>>I would advise him to check Riks questions.
                      >>He may not have asked, but sweet heavens just move to linux and be
                      >>done with it.
                      >Nonsense. While I prefer a LAMP server, running a WIMP is not that
                      >difficult either.
                      >>
                      >>Short of that, don't forget:
                      >>session_regis ter("ses_aid");
                      >session_regist er() is antiqued now. If you're still using it: don't.
                      >--
                      >Rik Wasmus
                      >
                      session_registe r may be depracated, but if you're running a windows
                      server for anything, you're crazy. Sure it's easy, you just run the
                      wamp executable. But then things start to get weird, like session
                      data dissapears. So if you're still using WAMP/WIMP for production,
                      don't.
                      >
                      Sometimes there are very valid reasons for running a Windows server.
                      Linux is NOT for everyone!

                      --
                      =============== ===
                      Remove the "x" from my email address
                      Jerry Stuckle
                      JDS Computer Training Corp.
                      jstucklex@attgl obal.net
                      =============== ===

                      Comment

                      • Captain Paralytic

                        #12
                        Re: Sessions not working in windows vista

                        On 22 Apr, 15:24, Erwin Moller
                        <Since_humans_r ead_this_I_am_s pammed_too_m... @spamyourself.c omwrote:
                        Captain Paralytic schreef:
                        >
                        >
                        >
                        On 22 Apr, 14:40, Angkor <eapso...@gmail .comwrote:
                        On Apr 22, 5:05 pm, Captain Paralytic <paul_laut...@y ahoo.comwrote:
                        >
                        >On 22 Apr, 04:23, Angkor <eapso...@gmail .comwrote:
                        >>Hi All,
                        >>I am trying to pass value from a page to another page through session
                        >>variable.
                        >>session_start ();
                        >>$_SESSION["ses_aid"] = $value("aid");
                        >>....
                        >>$_SESSION["ses_aid"] has value within its original page. But
                        >>$_SESSION["ses_aid"] has empty value in another page. Even I have
                        >>placed session_start() ; in every page.
                        >>I have developed the site in Windows Vista Home Premium with latest
                        >>version of both PHP and mySQL.
                        >>Could you please help me because i need it urgently?
                        >You are using IIS?
                        - How to check whether session_id(); stay the same? If not, what
                        should i do?
                        - Yes, I am using IIS.
                        >
                        I'd advise you to install wampserver or XAMPP, if that's an option.
                        >
                        Well he didn't ask for that, did he?
                        He is using IIS, and PHP works perfectly well on IIS (well almost
                        perfectly).
                        And in one of your responses over on comp.lang.javas cript, the OP did
                        not say that the advce he was looking for was for him to use, but that
                        did not stop you offering incorrect advice.

                        IIS can operate OK with PHP, but there are so many other things that
                        it does not do anywhere near as well as apache, I offered the advice I
                        did. I didn't offer it to you, so I suggest you just ignore it.

                        Comment

                        • Erwin Moller

                          #13
                          Re: Sessions not working in windows vista

                          Captain Paralytic schreef:
                          On 22 Apr, 15:24, Erwin Moller
                          <Since_humans_r ead_this_I_am_s pammed_too_m... @spamyourself.c omwrote:
                          >Captain Paralytic schreef:
                          >>
                          >>
                          >>
                          >>On 22 Apr, 14:40, Angkor <eapso...@gmail .comwrote:
                          >>>On Apr 22, 5:05 pm, Captain Paralytic <paul_laut...@y ahoo.comwrote:
                          >>>>On 22 Apr, 04:23, Angkor <eapso...@gmail .comwrote:
                          >>>>>Hi All,
                          >>>>>I am trying to pass value from a page to another page through session
                          >>>>>variable .
                          >>>>>session_st art();
                          >>>>>$_SESSIO N["ses_aid"] = $value("aid");
                          >>>>>....
                          >>>>>$_SESSIO N["ses_aid"] has value within its original page. But
                          >>>>>$_SESSIO N["ses_aid"] has empty value in another page. Even I have
                          >>>>>placed session_start() ; in every page.
                          >>>>>I have developed the site in Windows Vista Home Premium with latest
                          >>>>>version of both PHP and mySQL.
                          >>>>>Could you please help me because i need it urgently?
                          >>>>You are using IIS?
                          >>>- How to check whether session_id(); stay the same? If not, what
                          >>>should i do?
                          >>>- Yes, I am using IIS.
                          >>I'd advise you to install wampserver or XAMPP, if that's an option.
                          >Well he didn't ask for that, did he?
                          >He is using IIS, and PHP works perfectly well on IIS (well almost
                          >perfectly).
                          >
                          And in one of your responses over on comp.lang.javas cript, the OP did
                          not say that the advce he was looking for was for him to use, but that
                          did not stop you offering incorrect advice.
                          What are you talking about?
                          I do not understand the above sentence very well, but I think it boils
                          down to your opinion I gave somebody bad advice. Correct?

                          How is that relevant to this discussion what I wrote in c.l.j?

                          I am at a loss. :-/

                          It seems to me you are offended easily, and you didn't like it I said
                          your Apache advice doesn't solve the OPs problem since he is on IIS.
                          If that is the case: Sorry mate, I didn't want to offend you.
                          >
                          IIS can operate OK with PHP, but there are so many other things that
                          it does not do anywhere near as well as apache, I offered the advice I
                          did. I didn't offer it to you, so I suggest you just ignore it.
                          Well, even though I agree with your advise I will ignore it, if you like
                          that.

                          Lighten up a little Captain, it is almost weekend.

                          Erwin Moller

                          Comment

                          Working...