Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
8 - 3 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     
$vvalue){ echo $vname ." : " .$vvalue. ""; } } // this will display the cookie foreach ($_COOKIE as $name => $value){ echo $name ." : " .$value. ""; } } Hope this helps[/quote]" />

Re: how to read sessionid in version 2.5
by builderb on 2011/1/20 1:00:58

Try This:


if (isset($_COOKIE)){
$sessionID = $_COOKIE['PHPSESSID'];

// this will display the session variable(s)
foreach ($sessionID as $sname => $svalue){
echo "<br><br>" . $sname ." : " .$svalue. "<br>";
foreach ($svalue as $vname => $vvalue){
echo $vname ." : " .$vvalue. "<br>";
}
}
// this will display the cookie
foreach ($_COOKIE as $name => $value){
echo $name ." : " .$value. "<br>";
}

}

Hope this helps
Re: how to read sessionid in version 2.5
by mschmid on 2011/1/13 0:45:36

Sorry I do not see the seesionid in the xoops config.

If I do twice the following I only get once the session ID:

echo "<br>session_id 1: " . session_id($_COOKIE[$xoopsConfig['session_name']]);
echo "<br>session_id 2: " . session_id($_COOKIE[$xoopsConfig['session_name']]);

Output:
session_id 1: cif3msoorkoct6co9pi010ctjm
session_id 2:

what do I wrong?
how to read sessionid in version 2.5
by mschmid on 2011/1/13 0:10:53

Hi Gurus

in earlier version it was possible to get the session id:

echo session_id();
or
echo "session_id: " . session_id($_COOKIE[$xoopsConfig['session_name']]);

now it is empty ?!

if I do read out the xoops config, I get the session id:

foreach ($xoopsConfig as $key => $req) {
echo "<tr><td width=200>_xoopsConfig[" . $key . "] </td><td> " . $req . "</td></tr>";
$n = $n + 1;
}

==> How can I read / access the session ID

any hint will help
Markus

Who's Online

862 user(s) are online (758 user(s) are browsing Support Forums)


Members: 0


Guests: 862


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits