Cookie Help!

This is a discussion on "Cookie Help!" within the JavaScript Forum section. This forum, and the thread "Cookie Help! are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 16th, 2006, 11:45
New Member
Join Date: Jun 2006
Location: Edinburgh Scotland
Age: 25
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Cookie Help!

Hi there,

I am not sure if this is the right place to be asking on this forum (if not please tell me where!). I am looking for advice on cookies. I have a very specific type of cookie I need to create for one of the features on my website.

Basically, I am creating a "web novel". Part of the format is a "bookmark" feature. This would be a cookie which, once clicked, takes the reader out of the web-novel mode and back to the main book selection page with all the different "books" (displaying covers like one woudl see in a book store). The cookie functions such that the next time the browser clicks on the book from main book selection page, it will take them to the page they were on.

I know a bit about cookies, but think it would be better if someone who knows a lot about cookies could tell me where to look, and what I'd have to do.

I appreciate any advice / direction / help I can get.

Thank you!

Graeme
Reply With Quote

  #2 (permalink)  
Old Jun 16th, 2006, 16:14
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Cookie Help!

A couple of things.

Firstly you don't 'click' cookies. They are a client side storage method which exists on the clients computer.

They can be set from JavaScript or by server side scripts such as php.

The second thing is that although the user can control, through browser options, what action is to be taken when a cookie is to be set, which of course might be don't, EU law now requires that you offer the user an alternative. Having said that, I've yet to see any degree of enforcement of this.

So if the user doesn't want you setting cookies, what are you going to do? Limit the usefulness of the site or offer an alternative.

Most good books, and probably tutorial sites, on JavaScript will have a section on cookies. You will need to look elsewhere if you want to control them from server side.
Reply With Quote
  #3 (permalink)  
Old Jun 16th, 2006, 20:29
New Member
Join Date: Jun 2006
Location: Edinburgh Scotland
Age: 25
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Cookie Help!

Hi Geoff,

Thanks for that. Based on what I've described, what do you think I would need to make that happen? I just figured with my best educated guess that it would be a cookie that would "remember" the page the next time the user went to the website. I very much want this feature, but not sure how to go about it. I program myself - so everything I do I educate myself on / sort out how to accomplish each challenge that I come across.

To reiterate: you click the "bookmark" buttom / link, are taken back to the main page which displays all the books, and the next time you return to the website or click on that particular book, it opens to the page where you were when you "bookmarked" it. This is very important for what I am doing with my website - I am creating a virtual bookstore where browsers can view all books for sale in their entirety just like they would in a bookstore.

I appreciate your comments / suggestions.

Thank you,

Graeme
Reply With Quote
  #4 (permalink)  
Old Jun 17th, 2006, 14:22
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Cookie Help!

I assume you are only going to remember their place in one book at a time.

You could explain the availability of this feature to your users and ask them if they would prefer you to set a cookie as a reminder of have them register and login and keep the related book information in a server side database.
Reply With Quote
Reply

Tags
cookie, help

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] cookie does not get saved thosecars82 JavaScript Forum 2 May 23rd, 2008 12:13
Help with login script (session/cookie)... skuliaxe PHP Forum 3 Feb 16th, 2008 14:07
Fortune Cookie alexgeek Webforumz Cafe 7 Oct 11th, 2007 13:13
(localhost) cookie weirdness Donny Bahama PHP Forum 4 May 29th, 2007 14:44
Cookie Data thoulden Classic ASP 2 Aug 23rd, 2005 12:02


All times are GMT. The time now is 11:20.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43