Autor |
Beitrag |
Marco D.
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: Sa 26.05.07 13:56
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
GTA-Place
Beiträge: 5248
Erhaltene Danke: 2
WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
|
Verfasst: Sa 26.05.07 14:35
Ist das Session-Array auf der selben Seite noch leer, oder nach Seitenwechsel? Wird die Session-ID in irgendeiner Weise übertragen?
_________________ "Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
|
|
Marco D.
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: Sa 26.05.07 14:39
GTA-Place hat folgendes geschrieben: | Ist das Session-Array auf der selben Seite noch leer, oder nach Seitenwechsel? Wird die Session-ID in irgendeiner Weise übertragen? |
Nach Seitenwechsel. Sie wird nicht übertragen. Es funktioniert aber z.B. mit dem Benutzernamen auch.
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
Marco D.
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: So 27.05.07 16:47
Kann mir denn niemand helfen?
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
Martok
Beiträge: 3661
Erhaltene Danke: 604
Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
|
Verfasst: So 27.05.07 17:20
_________________ "The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
|
|
Marco D.
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: So 27.05.07 17:31
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
Martok
Beiträge: 3661
Erhaltene Danke: 604
Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
|
Verfasst: So 27.05.07 17:39
Hm, dann wohl doch ein Cookie.
Bist du dir ganz sicher, dass das session_start() davor liegt? Ich hatte den Fall auch mal, aber mir war dann im Endeffekt nur ein include in der Zeile verrutscht.
Marco D. hat folgendes geschrieben: | Weil das Session-Array leer ist beim Auslesen. |
Hm, leere strings oder echt empty()?
Kannst ja mal ein var_dump($_SESSION) machen, einmal nach dem Schreiben und vor dem Lesen.
_________________ "The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
|
|
Christian V.
Beiträge: 311
Win Xp Prof
Turbo Delphi 2005
|
Verfasst: Mi 30.05.07 10:32
session_start(); muss auf jeder Seite sein, wo du Session Variablen verwendest, nicht nur einmal um eine zu starten.
Falls du Cookie-Basiert Session verwendest, dann muss das session_start vor irgendwelchen ausgaben stehen.
_________________ Hardware runs the world, software controls the hardware, code generates software - Have You already coded today?
|
|