Store Cookie to Remember Site (1 post)

  1. coreymcollins
    Posted 3 years ago #

    I'm running a multisite network with about a dozen sites; each site is a different language.

    Each site has its language at the end of the URL, English excepted. So, for example:
    English: http://www.site.com/
    Spanish: http://www.site.com/spanish
    French: http://www.site.com/french

    What I'm looking to do is store a cookie with the language/site the user is currently viewing so if they return to http://www.site.com/, it will redirect them to the language they were previously viewing.

    I'm familiar with setting cookies, but I'm not sure how to accomplish something like this across a multisite network.

Topic Closed

This topic has been closed to new replies.

About this Topic