Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

Unnamed
Sunday, June 10th, 2012 at 2:52:25pm MDT 

  1. <?php
  2. session_start();
  3. error_reporting(E_ALL);
  4. if (defined('SID'))
  5.         {
  6.         echo 'Session is active<p>';
  7.                 $sid=session_id();
  8.                 echo $sid;
  9.                 echo $_SESSION['address'];
  10.         }
  11. else
  12.         {
  13.         echo 'Session is not started';
  14.         }
  15. ?>
  16.  
  17. Should be
  18.  
  19.  
  20. <?php
  21. session_start();
  22. error_reporting(E_ALL);
  23.  
  24. if(defined('SID')) {
  25.         echo 'Session is active<p>';
  26.         $sid = session_id();
  27.         echo $sid;
  28.         echo $_SESSION['address'];
  29. } else {
  30.         echo 'Session is not started';
  31. }
  32. ?>
  33.  
  34. no it should be
  35.  
  36. <?php
  37. session_start();
  38. error_reporting( E_ALL );
  39.  
  40. if ( defined( 'SID' ) )
  41. {
  42.   echo 'Session is active<p>';
  43.   $sid = session_id();
  44.   echo $sid;
  45.   echo $_SESSION['address'];
  46. }
  47. else
  48.   echo 'Session is not started';
  49. ?>

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

worth-right