techway Posted September 26, 2004 Report Share Posted September 26, 2004 Hallo leute, ich brauche die Session_ID f?r ein skript, hab versucht mit: $_SESSION['SESSION_ID'] aber die ist nicht belegt, kann mit jemand helfen? Danke Gru? TechWay Link to comment Share on other sites More sharing options...
khan_thep Posted September 26, 2004 Report Share Posted September 26, 2004 Hast Du mal mit session_id gearbeitet? Bzw. mal die application_top angesehen // set the session ID if it exists if (isset($_POST[session_name()])) { session_id($_POST[session_name()]); } elseif ( ($request_type == 'SSL') && isset($_GET[session_name()]) ) { session_id($_GET[session_name()]); } Link to comment Share on other sites More sharing options...
techway Posted September 26, 2004 Author Report Share Posted September 26, 2004 nein, hab damit noch nie gearbeitet, jeder hat mal so angefangen wie kann ich am einfachsten auf die session_id zugreifen? die w?re z.b. 751f86045c79227d0a1c37183acbe20f ich brauche sie als ?bergabeparameter f?r eine funktion (logout von phpbb) w?re nett wenn du mir helfen w?rdest :-) Gru? Steffen Link to comment Share on other sites More sharing options...
khan_thep Posted September 26, 2004 Report Share Posted September 26, 2004 hmm, also Du m??test eigtl. per $meine_session = session_id(); weiterkommen. session_id() returns the session id for the current session. If id is specified, it will replace the current session id. session_id() needs to be called before session_start() for that purpose. Depending on the session handler, not all characters are allowed within the session id. For example, the file session handler only allows characters in the range a-z, A-Z and 0-9! The constant SID can also be used to retrieve the current name and session id as a string suitable for adding to URLs. Note that SID is only defined if the client didn't send the right cookie. See also Session handling. See also session_start(), session_set_save_handler(), and session.save_handler. e.g. $id = 143445254; session_id($id); session_start(); print session_id(); Bzw. check mal die Konstante "SID" Also if (isset('SID')) ... $my_SID = SID; Tiefer m??te man in die SESSION-Class reinschnuppern. Aber schau doch mal, ob Dir das weiterhilft. Link to comment Share on other sites More sharing options...
khan_thep Posted September 26, 2004 Report Share Posted September 26, 2004 oder halt ?ber echo xtc_session_id(); Diese Funktion greift aber letzten Endes auch auf die session_id PHP-Funktion zur?ck - aber sieht halt besser aus :love: Link to comment Share on other sites More sharing options...
techway Posted September 26, 2004 Author Report Share Posted September 26, 2004 danke, das letzte wars Gru? Steffen Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.