how can i chck if session works
when igo from 1 page to another?
is there a way to get the session id and to check if it realy saves the data u give it
thnaks in advabce
peleg
[SOLVED] session is working?
Moderator: General Moderators
add this to the top of the page
Code: Select all
<?php
<pre>
print_r($_SESSION);
</pre>
?>- pelegk2
- Forum Regular
- Posts: 633
- Joined: Thu Nov 27, 2003 5:02 am
- Location: Israel - the best place to live in after heaven
- Contact:
well i did ass u told me and it gave me an error so i did
Code: Select all
<?php
session_start();
print_r($_SESSION);
?>how can i make it print all the data?Array()
Does the following work for you? (counter should increment every time you refresh)
Code: Select all
<?php
error_reporting(E_ALL);
session_start();
if(empty($_SESSION['count'])){
$_SESSION['count'] = 0;
}
echo ++$_SESSION['count'];
?>