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!!! Quote Link to comment 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. Quote Link to comment 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.