Search:
Main Menu
Login | RSS |

Quick PHP Code Tips and Examples

PHP Programming Tips, Tutorials and Source Code Examples for newbie

Session Error on PHP 4.4.x ? Try $_SESSION

March 11th, 2007 by Jon Moffet

If you encounter session error on PHP 4.4.x, especially when you're porting scripts written from earlier PHP release (i.e PHP 4.1.x, 4.2.x) when handling sessions, chances are that you are using the deprecated session_register() function.

Solution: Replace session_register function with $_SESSION variable instead.

This will make your scripts upward-compatible with PHP installations that disabled register globals and eliminate those weird session errors message

reference: http://www.php.net/session_register

Tags: , ,

Bookmark Post:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • NewsVine
  • Reddit
  • Netvouz
  • Spurl
  • Furl
  • digg
  • YahooMyWeb
  • del.icio.us

Posted in Uncategorized |

Related Posts

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.