tauchai Posted May 26, 2006 Share Posted May 26, 2006 global $PHP_SELF;$cookie_path = $PHP_SELF;$cookie_path = ereg_replace('[^/]*$', '', $cookie_path);session_set_cookie_params(0, $cookie_path);wat does it means? can anyone explain one line by line? thxs a lot! Link to comment https://forums.phpfreaks.com/topic/10473-help-seek/ Share on other sites More sharing options...
poirot Posted May 26, 2006 Share Posted May 26, 2006 It's just to set the session cookie's path.Anyways, you should replace $PHP_SELF with $_SERVER['PHP_SELF'] (when you do this you can also remove the global $PHP_SELF) because what you are using rely on register_globals on. Link to comment https://forums.phpfreaks.com/topic/10473-help-seek/#findComment-39117 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.