You are here: Re: need help with logout (logout not perfect) « PHP Programming Language « IT news, forums, messages
Re: need help with logout (logout not perfect)

Posted by crescent_au on 10/31/06 09:25

>Koncept wrote:
> Just curious what happens if you add these headers to the previous
> pages?
>
> ( code from docs )
>
> <?php
> header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
> header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
> ?>
>
> And this for the destruction of the session:
>
> <?php
> $_SESSION = array();
>
> // Note: This will destroy the session, and not just the session data!
> if ( isset( $_COOKIE[session_name()] ) )
> setcookie( session_name(), '', time() - 42000, '/' );
>
> // Finally, destroy the session.
> session_destroy();
> ?>
>

No, still the same. I don't have any cookies set. I've only used
sessions in my code but anyway I tried all the above you have suggested
but there is no difference in the outcome. I hope someone can help me
with this.

If you want the codes, I can even email you the codes. Just let me know
by email. I really need to get this fixed.

Thanks

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация