micah1701 Posted January 19, 2007 Share Posted January 19, 2007 I'm using mod rewrite to make friendly URLs on my site.so the url /information/blahis really running a file in the root folder like: index.php?information=blah My problem is that I'm using a javascript cookie but every time someone clicks a link and the URL changes, it creates a new cookie instead of updating the current cookie.What is the work around for this?when other problems came up from using the mod rewrite, I found I could just use the "server relative" value of all of my links within the site (ie just ad a "/" before the path) and that fixed the problem. But I'm having some trouble doing that in javascript for this cookie.I tried: document.cookie.path = "/";didn't help. Other thoughts? Thanks!!! Link to comment https://forums.phpfreaks.com/topic/34894-set-cookiepath-to-server-relative-value-need-just-one-cookie-for-whole-site/ Share on other sites More sharing options...
micah1701 Posted January 19, 2007 Author Share Posted January 19, 2007 [b]solved [/b]my own problem.i was just setting the path wrong. Link to comment https://forums.phpfreaks.com/topic/34894-set-cookiepath-to-server-relative-value-need-just-one-cookie-for-whole-site/#findComment-164607 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.