Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-02-2008, 01:24 PM
Junior Member
 
Join Date: Mar 2008
Posts: 7
Default automatic logout problem

hello,

I make a webapplication and this works great lokaly, but when I put it on a Linux webserver the I'm randomly logout :s
Someone how knows what the problem can be?

greets,
BlaCK ErrOR

Last edited by BlaCK ErrOR : 06-03-2008 at 09:01 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-03-2008, 08:59 AM
Junior Member
 
Join Date: Mar 2008
Posts: 7
Default

Oké, I found it isn't really random.
It happens when I loop a foreach in the view of one controller/action.
If a image is not found, the session isn't found anymore

PHP Code:
<? if(count($this->bedrijven) > 0) : ?>
<table>
<thead>
    <tr>
        <th>Name</th>
        <th>Address</th>
        <th>Zipcode</th>
        <th>Municipality</th>
        <th>Country</th>
        <th>Actions</th>
    </tr>
</thead>
<tbody>
    <? foreach($this->bedrijven as $bedrijf): ?>
        <tr>
             <td><?= $bedrijf['bedrijfnaam']; ?></td>
             <td><?= $bedrijf['adres']; ?></td>
             <td><?= $bedrijf['postcode']; ?></td>
             <td><?= $bedrijf['gemeente']; ?></td>
             <td><?= $bedrijf['land_naam']; ?></td>
             <td class="actions">
                 <a href="<?= $this->baseUrl(); ?>/company/edit/id/<?= $bedrijf['ID']; ?>">
                     <img src="<?= $this->baseUrl(); ?>/images/icons/16x16/apps/package_editors.png" 
                         alt="edit company info" title="edit company info" /></a>
                 <a href="<?= $this->baseUrl(); ?>/company/customers/id/<?= $bedrijf['ID']; ?>">
                     <img src="<?= $this->baseUrl(); ?>/images/icons/16x16/actions/agt_forum.png" 
                         alt="list of users" title="list of users" /></a>
                 <a href="<?= $this->baseUrl(); ?>/room/add/id/<?= $bedrijf['ID']; ?>">
                     <img src="<?= $this->baseUrl(); ?>/images/icons/16x16/actions/edit_add.png" 
                         alt="Add a new room" title="Add a new room" /></a>
                <a href="<?= $this->baseUrl(); ?>/license/history/id/<?= $bedrijf['ID']; ?>">
                    <img src="<?= $this->baseUrl(); ?>
                         alt="License history" title="License history" /></a> 
                <a href="<?= $this->baseUrl(); ?>/room/company/companyID/<?= $bedrijf['ID']; ?>">
                    <img src="<?= $this->baseUrl(); ?>
                         alt="Company Licenses" title="Company Licenses" /></a>
                <a href="<?= $this->baseUrl(); ?>/room/addroomproduct/bedrijfID/<?= $bedrijf['ID']; ?>">
                    <img src="<?= $this->baseUrl(); ?>"
                        alt="Link a product to a room" title="Link a aproduct to a room" /></a>
             </td>
        </tr>
    <? endforeach; ?>
</tbody>
<tfoot>
    <tr>
        <td>
<!-- begin paging -->
    <? if($this->pages['first']!= 0) : ?>
        <a href="<?= $this->url(array('controller'=>'company','action'=>'list'),null,true?>/page/<?= $this->pages['first']; ?>/">[First]</a>&nbsp;
        <a href="<?= $this->url(array('controller'=>'company','action'=>'list'),null,true?>/page/<?= $this->pages['previous']; ?>/">[Previous]</a>
     <? endif ?>
     
    <? for($i 0$i<count($this->pages['navigation']);$i++) : ?>
        <? if($this->pages['currentPage'] == $this->pages['navigation'][$i]) : ?>
        &nbsp;<?= $this->pages['navigation'][$i];  ?>
        <? else : ?>
        &nbsp;<a href="<?= $this->url(array('controller'=>'company','action'=>'list'),null,true?>/page/<?= $this->pages['navigation'][$i]; ?>/"><?= $this->pages['navigation'][$i]; ?></a>
         <? endif ?>
      <? endfor ?>
      
        <? if ($this->pages['last'] != 0) : ?>
    <a href="<?= $this->url(array('controller'=>'company','action'=>'list'),null,true?>/page/<?= $this->pages['next']; ?>/">[Next]</a>&nbsp;
    <a href="<?= $this->url(array('controller'=>'company','action'=>'list'),null,true?>/page/<?= $this->pages['last'];?>">[Last]</a>
    <? endif ?>
<!-- end paging -->
        </td>
    </tr>
</tfoot>
</table>
<? else : ?>
    <p class="noResult">There are no companies registered yet.</p>
<? endif ?>

Last edited by BlaCK ErrOR : 06-04-2008 at 03:49 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:23 AM.