• Resolved JS Morisset

    (@jsmoriss)


    Hey guys,

    You’re using the following to set the filter cookie, which means that it expires when the browser is closed. Would it be possible to have a setting for this? I’d like to set a longer cookie expiration time to keep the filter setting from one session to another.

    
    setcookie('wpsc_ticket_filter',json_encode($filter));
    

    BTW, shouldn’t the filter selection be saved in user meta instead of a cookie?

    Thanks,

    js.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Nikhil G

    (@nsgawli)

    Hello,

    If we save filters in meta then whenever a user logged in from any computer then it will apply the same filters and every time he needs to reset filters. Sorry we can’t use meta to store filters.

    We have taken your suggestion, to set default filters and it will fulfil your requirement.

    Thread Starter JS Morisset

    (@jsmoriss)

    If a user selected a preferred filter, wouldn’t he expect that filter to be saved, even if he switches browser or computer? That’s kinda what user preferences / meta are for, no? ?? Like if you selected a preferred color or language – you would expect that preference to be saved and restored, even if you switch browser or computer, right? I just don’t see the point in saving user preferences to a cookie that expires when the browser is closed.

    js.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘‘wpsc_ticket_filter’ cookie expiration time?’ is closed to new replies.