Sessions

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • #16
    Original geschrieben von antman
    "...wenn cookie nicht geht, dann url"

    Ja aber wie testet man das ?

    Oder auf der Anfangsseite ein Link machen ?

    "Wenn bei ihnen keine Cookies aktiviert sind, bitte hier entlang." ?
    das testet php eigentlich schon allein, siehe manual

    absolute und relative Pfade, wenn wenn das automatische sessionuri anhängen deaktiviert ist, muss an jedem Link und form die sessionuri manuell drangehängt werden.

    Um die einzelnen Artikel der jeweiligen session zuordnen zu können einfach die sessionid in der DB mit speichern.
    mfg
    marc75

    <Platz für anderes>

    Kommentar


    • #17
      Original geschrieben von marc75
      das testet php eigentlich schon allein, siehe manual
      Wo ? Raffe das absolut nicht.

      Hat jetzt jahrelang über cookie geklappt. Seit gestern klappt es nicht mehr im IE und ich weiß nicht woran es liegt. Es klappt nur im Mozilla.
      Pickel ? Übergewicht ? Depressionen ?
      Brot, Kartoffeln und Milch sind Gift!
      http://www.paleofood.de

      Kommentar


      • #18
        Gerade lese ich in einem Kommentar auf der php.met Seite:

        "For all people who struggle with IE 6 and session beeing lost, I could have another remendy.

        I read lots of threads according problem with IE 6 and sessions. I had similar symptoms - every time I refreshed the page with IE - new session file was created, so the session was not remembered.

        I've tried different solutions from different people and with no luck. What even worse this bug only appeared with English version of IE and english w2k. To spice things up this bug only appeared with server beeing run under Linux.
        This problem didn't show up with english version of IE on english w2k when using local webserver (Apache 1.x and 2.x for Windows - I've tired both). But when I tired the scripts on my ISP server the bug occured again.

        There were no problems with german version of IE and german windows + Apache running under Linux, only english version of IE had problems with it.

        I don't know about other localized versions but this is what I've noticed.

        So instead of using just session_start(), use this:

        <?php
        if (!session_id("mysession"))
        session_start();
        ?>

        Be aware that using a session name i.e. "mysession" in function session_id() is crucial. This does the trick.
        Without it it just doesn't work again.

        My php.ini:
        session.use_trans_sid = 0
        session.auto_start = 0
        session.use_cookies = 1

        This is the fix which worked for me, maybe it can save somebody's day."


        Könnte das das Problem sein ? session_id() ist doch eine superglobal. Kann ich das in allen Skripten, Klassen und Funktionen benutzen oder muss ich das als Parameter an die Funktionen übergeben ?
        Zuletzt geändert von antman; 19.08.2004, 14:46.
        Pickel ? Übergewicht ? Depressionen ?
        Brot, Kartoffeln und Milch sind Gift!
        http://www.paleofood.de

        Kommentar


        • #19
          Original geschrieben von antman
          session_id() ist doch eine superglobal.
          nein, ist es nicht.
          das ist eine funktion, die einen rückgabewert liefert.

          da scheint aber so einiges an grundlagenverständnis zu fehlen ...
          I don't believe in rebirth. Actually, I never did in my whole lives.

          Kommentar

          Lädt...
          X