Client side cookie detection with javascript?

http://www.cse.unsw.edu.au/~willu/ 2008-11-19 00:10:10 -05:00 committed by Joey Hess
parent 23f5874a56
commit 3c9c348578
1 changed files with 5 additions and 1 deletions

View File

@ -18,12 +18,16 @@ Even better would be to only display the cookie note as a warning if the login p
> time to check if it took, which is both complicated and probably would > time to check if it took, which is both complicated and probably would
> look bad. > look bad.
>> Might this be possible client-side with javascript? A quick google suggests it is possible:
>> <http://www.javascriptkit.com/javatutors/cookiedetect.shtml>. MJR, want to try adding
>> that? -- [[Will]]
Best of all would be to use URL-based or hidden-field-based session tokens if cookies are not permitted. Best of all would be to use URL-based or hidden-field-based session tokens if cookies are not permitted.
> This is not very doable since most of the pages the user browses are > This is not very doable since most of the pages the user browses are
> static pages in a static location. > static pages in a static location.
>> The pages that lose data without cookies (the edit pages, primarily) >> The pages that lose data without cookies (the edit pages, primarily)
>> don't look static. Are they really? --[MJR](http://mjr.towers.org.uk)a >> don't look static. Are they really? --[MJR](http://mjr.towers.org.uk)
>>> As soon as you post an edit page, you are back to a static website. >>> As soon as you post an edit page, you are back to a static website.