Thread: php sessions
View Single Post
Old 10-05-2007, 12:07 PM   #2 (permalink)
Rating: 0% (0)
Matthew King
Advancing Real Estate agent
 
Matthew King's Avatar
 
Join Date: Jul 2007
Posts: 95
Default

Hi Jeremy,

You can do this:

Code:
   <?php
      session_start();
      print(session_id());
   ?>
That gives you the unique session id. If you want to store variables, you call:
Code:
<?php $_SESSION['message'] = 'Hello World'; ?>
which you can then pull out again with:

Code:
<?= $_SESSION['message']; ?>
Just remember to call session_start(); before you start playing with it.

Hope that helps.
Matthew
__________________
Real Estate Web Developer & SEO Consultant

www.costablancapropertyportal.com | Costa Blanca Property | Javea Property for sale
Matthew King is offline   Reply With Quote
 

Spanish Real Estate Forum - Members newest adverts
CH5 New Villa Costa Azahar
A Castle in Spain
Costa Azahar Village House for sale
CHL Investment Opportunity Coasta Azahar
Cervera del Maestre Property