Jump to content


Photo

see the session data as raw


  • Please log in to reply
1 reply to this topic

#1 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 19 October 2006 - 08:16 AM

when a user turns of there cookies then the session uses it's own defualt values how can i get those defualt values when the cookies are on.

i think you call it sid


<?session_start();

$word="my name is redarrow";
$_SESSION['word']=$word;

echo $_SESSION['word'];

?>

Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#2 HuggieBear

HuggieBear
  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 19 October 2006 - 11:38 AM

I'm not sure I know what you mean, but there's a constant called SID that you can refer to once you've started a session...

<?php
session_start();
echo SID; // This obviously only works once you've started a session.
?>

Regards
Huggie
Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users