You are here: Re: [PHP] Sessions and cookies « PHP « IT news, forums, messages
Re: [PHP] Sessions and cookies

Posted by Chris Shiflett on 02/22/05 20:19

> When a session object is created - where is it store?

Assuming you mean session data, it is stored on the server, in /tmp by
default.

> To destroy the session object (widht all session vairables inside the
> particluar session object) can I use session_destroy();

http://www.php.net/session_destroy says:

"session_destroy() destroys all of the data associated with the current
session. It does not unset any of the global variables associated with the
session, or unset the session cookie."

This means that session_destroy deletes the particular record from the
session data store. It does not act on the cookie nor the $_SESSION
superglobal array.

Hope that helps.

Chris

=====
Chris Shiflett - http://shiflett.org/

PHP Security - O'Reilly HTTP Developer's Handbook - Sams
Coming Soon http://httphandbook.org/

 

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

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