Reply to Re: [PHP] apache sessions

Your name:

Reply:


Posted by Chris Shiflett on 08/21/05 07:47

Bawt T. Eggdrop wrote:
> im trying to change my session backend for apache from files to mysql.
> is there something php provides that allows a php script to execute
> before each page gets loaded in apache. if not i have to edit hundreds
> of php files...theres gotta be an easier way. thanks.

I may be misunderstanding your question, but if you're wanting to change
the session data store that PHP uses, you can use
session_set_save_handler() and write your own functions.

Apache handles incoming HTTP requests, so it doesn't make sense for a
PHP script to execute before it has been requested.

Hope that helps.

Chris

--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/

[Back to original 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

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