Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error Message - please help

Status
Not open for further replies.

ginx

Programmer
Feb 1, 2002
8
CA
This message is appearing at the bottom of the pages!! can anyone help?

>Warning: Unknown(): Your script possibly relies on a session
>side-effect which existed until PHP 4.2.3. Please be advised that the
>session extension does not consider global variables as a source of
>data, unless register_globals is enabled. You can disable this
>functionality and this warning by setting session.bug_compat_42 or
>session.bug_compat_warn to off, respectively. in Unknown on line 0



Regards,
Ginx
 
How are you creating and manipulating session variables?

The recommended way is to NOT use session_register(), session_unset(), etc. Rather, the online manual recommends that you manipulate the $_SESSION array directly.

Want the best answers? Ask the best questions: TANSTAAFL!
 
I am using session_start() and session_unset();

should i not be using these at all?

thanks for your quick response!
 
You must use session_start() unless you have session.auto_start set to "on" in php.ini.

Sorry, I misspoke. It is recommended that if you are manipulating $_SESSION, that you not use session_register(), session_is_registered(), or session_unregister().

What are you doing to create, set values to, and remove session variables?


Want the best answers? Ask the best questions: TANSTAAFL!
 
I am calling session_start at the top of each page and then creating session variables by :
$_SESSION['whatever'] = "car";

I unset the session only once a user logs out by calling session_unset()

thanks again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top