Jump to content
xt:Commerce Community Forum

Wo Kriege Ich Die Session_id Her?


techway

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...