messages stuck permanently in session

Posted by Tim Whitlock on Stack Overflow See other posts from Stack Overflow or by Tim Whitlock
Published on 2010-05-24T17:49:46Z Indexed on 2010/05/24 18:21 UTC
Read the original article Hit count: 217

Filed under:
|
|

I am getting Drupal messages stuck permanently in session, so that after being displayed they are not cleared. The unsetting code in function drupal_get_messages in bootstrap.inc is firing - It's as if the session is sleeping (i.e. serializing to disk) before the messages array is cleared.

Have you witnessed such a thing?

UPDATE The call that commits the session starts from drupal_page_footer at the bottom of index.php - for some reason this is executing twice per request! once with the emptied messages and then again with the messages back in the array.

© Stack Overflow or respective owner

Related posts about php

Related posts about drupal