Jump to content

Archived

This topic is now archived and is closed to further replies.

tauchai

help seek

Recommended Posts

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!

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.