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'],'../'); 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. 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! 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
Archived
This topic is now archived and is closed to further replies.