Sessions Problem

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

    #1

    Sessions Problem

    I have a protected administrator page. I made it using sessions. I test it
    using my PC and it works perfect.When I upload it to the server, it does not
    work because it does not remember the seasons. I do not know how to fix it.
    Does anybody know what's wrong with the server????? Do I have to change
    something so that the server will be able to recognize the sessions that I
    use in my script????


  • Erwin Moller

    #2
    Re: Sessions Problem

    Pitaridis Aristotelis wrote:
    [color=blue]
    > I have a protected administrator page. I made it using sessions. I test it
    > using my PC and it works perfect.When I upload it to the server, it does
    > not work because it does not remember the seasons. I do not know how to
    > fix it. Does anybody know what's wrong with the server????? Do I have to
    > change something so that the server will be able to recognize the sessions
    > that I use in my script????[/color]

    hi,

    first thing to check is php.ini.

    Could be many reasons why they do not work, eg:
    You autostart session on your homemachine, but on the server not.

    Compare the session section in both php.ini files.

    Regards,
    Erwin Moller

    Comment

    • Pitaridis Aristotelis

      #3
      Re: Sessions Problem

      I compared the two php.ini files and there is not any difference. What else
      should I check??

      Thanks in advance
      Aristotelis

      "Erwin Moller"
      <since_humans_r ead_this_I_am_s pammed_too_much @spamyourself.c om> wrote in
      message news:42651f2e$0 $150$e4fe514c@n ews.xs4all.nl.. .[color=blue]
      >
      > Pitaridis Aristotelis wrote:
      >[color=green]
      > > I have a protected administrator page. I made it using sessions. I test[/color][/color]
      it[color=blue][color=green]
      > > using my PC and it works perfect.When I upload it to the server, it does
      > > not work because it does not remember the seasons. I do not know how to
      > > fix it. Does anybody know what's wrong with the server????? Do I have to
      > > change something so that the server will be able to recognize the[/color][/color]
      sessions[color=blue][color=green]
      > > that I use in my script????[/color]
      >
      > hi,
      >
      > first thing to check is php.ini.
      >
      > Could be many reasons why they do not work, eg:
      > You autostart session on your homemachine, but on the server not.
      >
      > Compare the session section in both php.ini files.
      >
      > Regards,
      > Erwin Moller[/color]


      Comment

      • rovisoft

        #4
        re:Sessions Problem

        Did you set the path for sessions, it has to be writeable also,
        something like /tmp!

        Look for this vars and values
        session.save_ha ndler = files
        session.save_pa th = /tmp

        Ovidiu

        http://www.DevPlug.com --Connecting Developers
        Posted from: http://www.devplug.com/ftopic23264.htm

        Comment

        Working...