RobertP Posted May 30, 2012 Share Posted May 30, 2012 to get to the point. i have this code in m htaccess file. RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^/?([a-zA-Z0-9-]+)(?:/(.*))?$ index.php?action=$1&sub=$2 and i am converting all outbound urls that direct to my site with a function. /index.php?action=forums&sub=forumId;postId;bla to /forums/forumId/postId/bla when settings cookies @ /login (this login page in sef-mode) it does not work as intended. it sets the same cookie in multiple paths. http://img812.imageshack.us/img812/5936/cookieissue.jpg i am also using this to set my cookie. setcookie($config['sessionCookieName'],$this->_key,time()+$config['sessionCookieLifetime'],'../'); Quote Link to comment https://forums.phpfreaks.com/topic/263361-cookies-and-search-engine-friendly-urls/ Share on other sites More sharing options...
scootstah Posted May 30, 2012 Share Posted May 30, 2012 Set it to / instead of ../ EDIT: The cookie path, that is. Quote Link to comment https://forums.phpfreaks.com/topic/263361-cookies-and-search-engine-friendly-urls/#findComment-1349704 Share on other sites More sharing options...
RobertP Posted May 30, 2012 Author Share Posted May 30, 2012 not working, still multiple paths. edit: i originally had it set to one slash, and i was still having this issue, but now its working perfectly. thank you very much scootstah! Quote Link to comment https://forums.phpfreaks.com/topic/263361-cookies-and-search-engine-friendly-urls/#findComment-1349706 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.