1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

$.setCookie() To console.log()

Discussion in 'XenForo Suggestions' started by digitalpoint, Feb 24, 2016.

  1. digitalpoint

    digitalpoint Well-Known Member

    Is this really necessary? Why not just do it when in debug mode?

    I have something that saves Google Map location/zoom to a cookie as you move the map (so it remembers where you last were looking at the map). Using the XenForo setCookie() function makes the console log look like so if you move the map around for half a second. lol

    Code:
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.908865516479466,"lng":-117.14375958629454,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.907712581990594,"lng":-117.14324460216368,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.906847871271445,"lng":-117.14307294078672,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.905550789358585,"lng":-117.14290127940977,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.9048301800857,"lng":-117.14255795665586,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.90439781170709,"lng":-117.14238629527891,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.90396544121735,"lng":-117.14238629527891,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.90367719305135,"lng":-117.14221463390196,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.90338894394706,"lng":-117.14221463390196,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.90338894394706,"lng":-117.142042972525,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.903244819043046,"lng":-117.142042972525,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.90295656853135,"lng":-117.14187131114805,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.90266831708141,"lng":-117.14187131114805,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.90223593814727,"lng":-117.1416996497711,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.90194768435168,"lng":-117.1416996497711,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.90194768435166,"lng":-117.14152798839415,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.90165942961784,"lng":-117.14152798839415,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.90137117394575,"lng":-117.14135632701719,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.90093878867844,"lng":-117.14135632701719,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.900506401300106,"lng":-117.14118466564024,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.900362271704886,"lng":-117.14118466564024,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.90007401181075,"lng":-117.14118466564024,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.8997857509784,"lng":-117.14101300426329,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.899353357970746,"lng":-117.14101300426329,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.89892096285212,"lng":-117.14084134288633,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.89848856562251,"lng":-117.14066968150938,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.898056166281954,"lng":-117.14066968150938,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.8967589555948,"lng":-117.14032635875547,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.89430861690756,"lng":-117.13998303600157,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.89344377530556,"lng":-117.13981137462461,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.892723067520954,"lng":-117.13963971324766,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.891858210440006,"lng":-117.13946805187071,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.890272617196935,"lng":-117.13929639049375,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.88911944065119,"lng":-117.13929639049375,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.887245496753216,"lng":-117.1391247291168,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.8862364336233,"lng":-117.1391247291168,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.885803974478634,"lng":-117.1387814063629,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.884650739774735,"lng":-117.13860974498594,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.884218272891516,"lng":-117.13860974498594,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.88407411679479,"lng":-117.13860974498594,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.88392996046355,"lng":-117.13860974498594,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.88378580389784,"lng":-117.13843808360899,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.883641647097626,"lng":-117.13843808360899,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.88335333279372,"lng":-117.13843808360899,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.88320917529002,"lng":-117.13843808360899,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.88306501755182,"lng":-117.13826642223204,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.882776701371974,"lng":-117.13826642223204,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.882632542930295,"lng":-117.13826642223204,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.882344225343495,"lng":-117.13809476085508,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.88220006619837,"lng":-117.13809476085508,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.881767587356016,"lng":-117.13792309947813,"zoom":13,"marker_hide":false}
    xenforo.js?_v=5af4aaef:94 Set cookie intel = {"type":"all","alerts":false,"mine":false,"days":"90","lat":32.881623427272935,"lng":-117.13792309947813,"zoom":13,"marker_hide":false}
    Technically it doesn't hurt anything I suppose, but is there any sort of use case where an end user needs to know the underlying cookie being set/deleted when not in debug mode?
     

Share This Page