Dynamic content get lost on page refresh
Hi,
i have the following demo code ,
- <?php
- if (!isset($_SESSION[$column['userid']])){
- $_SESSION[$column['userid']]='offline' ;
- * code for fectch data from the database for this user id
- ?>
- <script>
- $(".Offline").append('<li class="<?php echo $column['userid'];?>"><a href="#page">foo</a></li>');
- $(".Offline").listview('refresh');
- </script>
- <?php
-
- }
- ?>
When i refresh the page , the dynamic content get lost . How do i keep the content after refresh? .
Addition info: i have tested on mozilla firefox and internet explore 8 ,
English is not my main language give me a shout if you dont understand my question .