You are here: Re: logout script « PHP Programming Language « IT news, forums, messages
Re: logout script

Posted by FrobinRobin on 04/14/07 11:39

On 13 Apr, 20:48, Schraalhans Keukenmeester <bitbuc...@invalid.spam>
wrote:
> Tyno Gendo wrote:
> > pank wrote:
> >> hey guys ...
> >> can anybody tell me a php logout script.
> >> I want to log out from one page which i was developing ,
> >> i tried but it's not working. I have tried
> >> session_destroy(),session_unset() functions
> >> but they are not working.
> >> If any one is having that script then please help me .
>
> > Session_destroy should destroy all variables you have set in $_SESSION
>
> No it does NOT. They are valid as long as the script runs. A call to
> $_SESSIONS=array(); after the session_destroy() clears the session
> variables.
>
> Sh.

Does it HAVE to be that way around? I usually do it the other way
around: session_destroy then $_SESSIONS=array() and it works fine for
me.

If the original poster is doing this and still has problems; I would
suggest checking the session name on your logged in pages and also the
logging out page. Use the session_name() function to see this.
Personally I always use a custom session name for `security` purposes.

 

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

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