You are here: Session Problem - could it be cos of register_globals? « PHP Programming Language « IT news, forums, messages
Session Problem - could it be cos of register_globals?

Posted by Matthew on 11/19/07 19:25

Hi,

!!I'm A Newbie Alert!!

My server runs PHP version 4.4.3.

I'm successfully creating a session and can set and retrieve my own
session variables.

As far as I can tell the $_SESSION['uid'] variable should be created
automatically when session_start() is called. When I retrieve this
variable however it is empty.

Is this because -- manual -- "PHP directive register_globals went from ON
to OFF in PHP » 4.2.0." ??

If so: How do I turn register_globals on, do I just edit the .htaccess
file and add the line below (exactly as shown?

php_flag register_globals on

If not, any ideas why $_SESSION['uid'] does not have a value?

Note the value of $_SESSION['cookie'] is also empty, isn't that also
supposed to be created and sent to the browser automatically by
session_start() ?? --My browser does not receive a cookie either?

In a muddle, regards, etc..

 

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

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