SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: need simple cookie help
-
Jul 24, 2008, 09:38 #1
- Join Date
- Jul 2008
- Posts
- 1
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
need simple cookie help
I need simple help. I hardly know anything about java script and am having a lot of trouble with something that should be simple.
What I need to do is put a cookie on someone's browser. When they visit page A, then a cookie is placed on their browser.
Then on another web page B if the person visting has the cookie on their browser I want to redirect to another page.
Please help me with this. Thanks.
-
Jul 24, 2008, 11:38 #2
- Join Date
- Jul 2008
- Location
- Rosario, Argentina
- Posts
- 94
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
usually cookies work for the same site, page A and B are on the same site or a different domain?
-
Jul 24, 2008, 18:07 #3
- Join Date
- Aug 2007
- Posts
- 3
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I have same problem, (same site) I need a craigslist style cookie that will resend my user to the geo page location that relates to them the next time they visit ie. Los Angeles. To save them a click and personalize the experiance.
Basically just like craigslist does. I'm happy to pay if nessessesary
-
Jul 24, 2008, 21:14 #4
- Join Date
- Jan 2007
- Location
- Christchurch, New Zealand
- Posts
- 14,729
- Mentioned
- 104 Post(s)
- Tagged
- 4 Thread(s)
Here's some code for handling cookies
http://www.quirksmode.org/js/cookies.htmlProgramming Group Advisor
Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
Car is to Carpet as Java is to JavaScript
Bookmarks