|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
SitePoint Enthusiast
![]() Join Date: Oct 2009
Posts: 37
|
php session Error
hi all,
If any one knows the meaning of following error, and way to rectify plz tell... 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 |
|
|
|
|
|
#2 |
|
SitePoint Evangelist
![]() ![]() ![]() ![]() Join Date: Oct 2009
Posts: 464
|
Oh that's pretty confusing one
![]() Took me a hours to dig out. Even php source code were examined. Make sure you don't have $_SESSION array key names matching global variable name. E.g. if you have $_SESSION['cart'] variable and $cart variable in same script, one of them must be changed. Name it $_SESSION['sess_cart'] and error will disappear. also, variable declaration would help |
|
|
|
|
|
#3 |
|
SitePoint Enthusiast
![]() Join Date: Oct 2009
Posts: 37
|
thanks for reply...
now that error has cleared |
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 17:55.









Linear Mode
